summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.pkg.mk
blob: 3d1ca42e9355b50c726e4e751f3217f54470c098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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>
OpenPOWER on IntegriCloud