1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Stage support

- Add missing OPTIONS_DEFINE
This commit is contained in:
Antoine Brodin 2014-01-03 16:40:01 +00:00
parent f623c8be90
commit 9a916c15d6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338563

View File

@ -19,17 +19,16 @@ INSTALL_WRKSRC= ${WRKSRC}/src
MAKE_JOBS_UNSAFE= yes
NO_STAGE= yes
USES= gmake pkgconfig
USE_GNOME= gtk20
MAKE_ARGS= INSTALLDIR="${PREFIX}" CC="${CC}" CXX="${CXX}"
SUB_FILES= pkg-message
MAN1= roadgps.1 roadmap.1
PORTDOCS= ${DOCS} README
PLIST_FILES= ${BINS:S,^,bin/,} ${GUI_BINS:S,^,bin/,} \
${GUI_BINS:S,^gtk,bin/,} ${SCRIPTS:S,^,bin/,} \
man/man1/roadgps.1.gz man/man1/roadmap.1.gz \
${DATA:S,^,%%DATADIR%%/,}
PLIST_DIRS= %%DATADIR%%
@ -37,12 +36,15 @@ BINS= dumpmap buildmap buildmap_osm buildplace buildus
GUI_BINS= gtkroadmap gtkroadgps
SCRIPTS= rdmcompare rdmdownload rdmgendcwmaps rdmgenmaps \
rdmgenshpmaps rdmgenstatemaps
MANS= roadgps.1 roadmap.1
DATA= drivers preferences roadmap.popup roadmap.screenobjects \
session sprites
DOCS= Bugs ChangeLog Coding Configuration Developer-Guide \
Installation Map-Building Map-Designing Map-Format \
OpenStreetMap Platforms Quickstart Status ToDo Usage
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@ -53,31 +55,28 @@ post-patch:
do-install:
.for _BIN in ${BINS}
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${_BIN} ${PREFIX}/bin/${_BIN}
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${_BIN} ${STAGEDIR}${PREFIX}/bin/${_BIN}
.endfor
.for _GUI_BIN in ${GUI_BINS}
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/gtk2/${_GUI_BIN} ${PREFIX}/bin/${_GUI_BIN}
${LN} -sf ${_GUI_BIN} ${PREFIX}/bin/${_GUI_BIN:S,^gtk,,}
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/gtk2/${_GUI_BIN} ${STAGEDIR}${PREFIX}/bin/${_GUI_BIN}
${LN} -sf ${_GUI_BIN} ${STAGEDIR}${PREFIX}/bin/${_GUI_BIN:S,^gtk,,}
.endfor
.for _SCRIPT in ${SCRIPTS}
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/${_SCRIPT} ${PREFIX}/bin/${_SCRIPT}
${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/${_SCRIPT} ${STAGEDIR}${PREFIX}/bin/${_SCRIPT}
.endfor
.for _MAN in ${MAN1}
${INSTALL_MAN} ${INSTALL_WRKSRC}/${_MAN} ${MANPREFIX}/man/man1/${_MAN}
.for _MAN in ${MANS}
${INSTALL_MAN} ${INSTALL_WRKSRC}/${_MAN} ${STAGEDIR}${MANPREFIX}/man/man1/${_MAN}
.endfor
@${MKDIR} ${DATADIR}
@${MKDIR} ${STAGEDIR}${DATADIR}
.for _DATA in ${DATA}
${INSTALL_DATA} ${INSTALL_WRKSRC}/${_DATA} ${DATADIR}/${_DATA}
${INSTALL_DATA} ${INSTALL_WRKSRC}/${_DATA} ${STAGEDIR}${DATADIR}/${_DATA}
.endfor
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README
.for _DOC in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${_DOC} ${DOCSDIR}/${_DOC}
${INSTALL_DATA} ${WRKSRC}/doc/${_DOC} ${STAGEDIR}${DOCSDIR}/${_DOC}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>