aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoradam <adam@FreeBSD.org>1995-04-25 00:52:12 +0800
committeradam <adam@FreeBSD.org>1995-04-25 00:52:12 +0800
commit45a28fc69bb29f3fbd923bc8e55dd388475214eb (patch)
treed4abb799fdf375ac4fc9b18a173654517596d24e /net
parent77517884281ecb26f599b807eba7c5dd4427a3cf (diff)
downloadfreebsd-ports-gnome-45a28fc69bb29f3fbd923bc8e55dd388475214eb.tar.gz
freebsd-ports-gnome-45a28fc69bb29f3fbd923bc8e55dd388475214eb.tar.zst
freebsd-ports-gnome-45a28fc69bb29f3fbd923bc8e55dd388475214eb.zip
added convulutions for package creation with ${PREFIX} != /usr/local
Diffstat (limited to 'net')
-rw-r--r--net/dgd/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/net/dgd/Makefile b/net/dgd/Makefile
index 4ddc1b7d0c02..f7f2c2d0a900 100644
--- a/net/dgd/Makefile
+++ b/net/dgd/Makefile
@@ -67,6 +67,19 @@ ${_PATCH_COOKIE}: ${PATCHLIST}
do-install:
@chown -R mud.mud ${WRKDIR}/dgd
@tar -C ${WRKDIR} -cf - `grep '^dgd/' pkg/PLIST` \
- | tar -C /usr/local -xpf -
+ | tar -C ${PREFIX} -xpf -
+
+.if !defined(NO_INSTALL)
+package:
+ @${MAKE} ${.MAKEFLAGS} NO_INSTALL= package
+.endif
+
+.if !defined(DO_PACKAGE)
+do-package:
+ @echo ".include \"${.CURDIR}/Makefile\"" >${WRKDIR}/Makefile
+ @cd ${WRKDIR}; \
+${MAKE} ${.MAKEFLAGS} WRKDIR=${WRKDIR} PKGDIR=${PKGDIR} DO_PACKAGE= do-package
+ @rm -f ${WRKDIR}/Makefile
+.endif
.include <bsd.port.mk>