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:
parent
c0e45238ef
commit
8c7c713f14
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=1524
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user