diff options
author | adam <adam@FreeBSD.org> | 1995-04-25 00:52:12 +0800 |
---|---|---|
committer | adam <adam@FreeBSD.org> | 1995-04-25 00:52:12 +0800 |
commit | 45a28fc69bb29f3fbd923bc8e55dd388475214eb (patch) | |
tree | d4abb799fdf375ac4fc9b18a173654517596d24e /net | |
parent | 77517884281ecb26f599b807eba7c5dd4427a3cf (diff) | |
download | freebsd-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/Makefile | 15 |
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> |