espie 90e969d0aa switch to one single schema for sqlports. Kill sqlports-compact (it is the
new default, change tables to be _table, views to be view (for now)) and
adjust consumers to work with the new tool, to the best of my knowledge
2018-11-28 14:57:45 +00:00

42 lines
998 B
Makefile

# $OpenBSD: Makefile,v 1.9 2018/11/28 14:57:45 espie Exp $
COMMENT = readmes.html
PKG_ARCH = *
DISTNAME = ports-readmes-3
DISTFILES =
CATEGORIES = databases
PERMIT_PACKAGE_CDROM = Yes
BUILD_DEPENDS = databases/sqlports>=7.0 \
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 \
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>