On 2013/02/19 20:11, circuit6engineering wrote:
> root@lucidrine:/usr/ports/devel/fossil:60# env FLAVOR="static" make
> PREFIX=/var/www install-all

Many things in bsd.port.mk say "User settings", this one doesn't.

> ===>  Building package for fossil-1.22p0v0-static
> Create /usr/ports/packages/i386/all/fossil-1.22p0v0-static.tgz
> Error:
> /usr/ports/pobj/fossil-1.22-static/fake-i386-static/var/www/bin/fossil
> does not exist
> Fatal error: can't continue
>  at /usr/libdata/perl5/OpenBSD/PkgCreate.pm line 1385
> *** Error code 1

Something like this might make sense..

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/fossil/Makefile,v
retrieving revision 1.35
diff -u -p -r1.35 Makefile
--- Makefile    23 Oct 2012 08:10:27 -0000      1.35
+++ Makefile    20 Feb 2013 10:32:16 -0000
@@ -5,6 +5,7 @@ COMMENT =               simple distributed software c
 DISTNAME =             fossil-src-20121022124804
 PKGNAME =              fossil-1.24
 EPOCH =                        0
+REVISION =             0
 CATEGORIES =           devel www
 
 MAINTAINER =           James Turner <[email protected]>
@@ -32,6 +33,7 @@ CONFIGURE_ARGS =      --disable-internal-sqli
 
 .if ${FLAVOR} == "static"
 CONFIGURE_ARGS +=      --static --with-openssl=none
+PREFIX =               /var/www
 .endif
 
 REGRESS_DEPENDS =      ${MODTCL_RUN_DEPENDS}
@@ -43,6 +45,7 @@ do-regress:
        @cd ${WRKSRC} && ${MODTCL_BIN} test/tester.tcl fossil
 
 do-install:
+       ${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
        ${INSTALL_PROGRAM} ${WRKSRC}/fossil ${PREFIX}/bin
 
 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/fossil/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   23 Sep 2009 19:06:46 -0000      1.1.1.1
+++ pkg/PLIST   20 Feb 2013 10:32:16 -0000
@@ -1,2 +1,3 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2009/09/23 19:06:46 sthen Exp $
+@option no-default-conflict
 @bin bin/fossil

Reply via email to