diff options
author | paul <paul@FreeBSD.org> | 2004-12-20 15:46:56 +0000 |
---|---|---|
committer | paul <paul@FreeBSD.org> | 2004-12-20 15:46:56 +0000 |
commit | 3b39879086f344c1c5a00bb8440a4034b390ef29 (patch) | |
tree | 615d44832ee2e7a07f6ac017ed28a494729e7e72 /share/mk/bsd.pkg.mk | |
parent | 4852d3818866d5291cad73fdd4d382d2dedd1338 (diff) | |
download | FreeBSD-src-3b39879086f344c1c5a00bb8440a4034b390ef29.zip FreeBSD-src-3b39879086f344c1c5a00bb8440a4034b390ef29.tar.gz |
If PORTNAME is set in a system Makefile then hook into the ports
mechanisms to allow a package to be created. This paves the way
for packaging the main tree.
Diffstat (limited to 'share/mk/bsd.pkg.mk')
-rw-r--r-- | share/mk/bsd.pkg.mk | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/share/mk/bsd.pkg.mk b/share/mk/bsd.pkg.mk new file mode 100644 index 0000000..3d1ca42 --- /dev/null +++ b/share/mk/bsd.pkg.mk @@ -0,0 +1,48 @@ +# $FreeBSD$ + +WRKDIR=${.OBJDIR} +.if ${.OBJDIR} == ${.CURDIR} +WRKDIR=${.CURDIR}/work +.endif +NO_WRKSUBDIR=YES +NO_CHECKSUM=YES +NO_BUILD=YES + +fetch: +extract: +patch: +configure: +build: + +.if target(__<bsd.obj.mk>__) +clean: do-clean +.if ${CANONICALOBJDIR} != ${.CURDIR} && exists(${CANONICALOBJDIR}/) + @rm -rf ${CANONICALOBJDIR} +.else + @if [ -L ${.CURDIR}/obj ]; then rm -f ${.CURDIR}/obj; fi +.if defined(CLEANFILES) && !empty(CLEANFILES) + rm -f ${CLEANFILES} +.endif +.if defined(CLEANDIRS) && !empty(CLEANDIRS) + rm -rf ${CLEANDIRS} +.endif +.endif +.endif + +.if !target(beforeinstall) +beforeinstall: +.endif +.if !target(afterinstall) +afterinstall: +.endif + +install: install-message check-categories check-conflicts \ + run-depends lib-depends pre-install pre-install-script \ + generate-plist check-already-installed \ + check-umask install-mtree pre-su-install \ + pre-su-install-script \ + beforeinstall realinstall afterinstall \ + add-plist-info post-install post-install-script \ + compress-man run-ldconfig fake-pkg + +.include <bsd.port.mk> |