-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (34 loc) · 1.07 KB
/
Makefile
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
# $OpenBSD: Makefile,v 1.5 2012/06/18 12:18:45 espie Exp $
COMMENT = readmes.html
PKG_ARCH = *
DISTNAME = ports-readmes-1
DISTFILES =
CATEGORIES = databases
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
BUILD_DEPENDS = databases/sqlports,-compact>=2.2 \
databases/p5-DBD-SQLite \
textproc/p5-Template
PLIST = ${WRKINST}/plist
# XXX this plist *will change*
STATIC_PLIST = No
do-build:
TEMPLATESDIR=${FILESDIR} \
OUTPUTDIR=${WRKBUILD} \
DATABASE=${LOCALBASE}/share/sqlports-compact \
perl ${FILESDIR}/make-readmes
READMES_DIR = ${PREFIX}/share/ports-readme
do-install:
${INSTALL_DATA_DIR} ${READMES_DIR}
cp -r ${WRKBUILD}/* ${READMES_DIR}
chown -R ${SHAREOWN}.${SHAREGRP} ${READMES_DIR}
cd ${PREFIX} && find share/ports-readme -type f >${WRKINST}/list1
cd ${PREFIX} && find share/ports-readme -type d|sed -e 's,$$,/,' >${WRKINST}/list2
{ \
echo "@comment This file has been automatically generated"; \
echo "@option always-update"; \
sort ${WRKINST}/list[12]; \
} >${PLIST}
.include <bsd.port.mk>