1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

added convulutions for package creation with ${PREFIX} != /usr/local

This commit is contained in:
Adam David 1995-04-24 16:52:12 +00:00
parent c0e45238ef
commit 8c7c713f14
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=1524

View File

@ -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>