cb7d5cc607
adding EXAMPLES to OPTIONS_DEFINE where necessary. In a couple instances, correct examples being controlled by the DOCS option.
47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
# Created by: Sergei Kolobov <sergei@kolobov.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= execline
|
|
PORTVERSION= 1.08
|
|
CATEGORIES= lang shells
|
|
MASTER_SITES= http://www.skarnet.org/software/${PORTNAME}/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Lightweight non-interactive sh(1)-like scripting language
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/skalibs/libstddjb.a:${PORTSDIR}/devel/skalibs
|
|
|
|
WRKSRC= ${WRKDIR}/admin/${DISTNAME}
|
|
|
|
DOCS= package/CHANGES package/README package/THANKS package/TODO \
|
|
doc/*.html
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
do-configure:
|
|
${ECHO_CMD} "FreeBSD" > ${WRKSRC}/src/sys/systype
|
|
${ECHO_CMD} "${LOCALBASE}/include/skalibs" \
|
|
> ${WRKSRC}/conf-compile/import
|
|
${ECHO_CMD} "${LOCALBASE}/lib/skalibs" \
|
|
>> ${WRKSRC}/conf-compile/import
|
|
${REINPLACE_CMD} -e 's|superstrip1|#superstrip1|g' \
|
|
${WRKSRC}/conf-compile/conf-stripbins
|
|
@${REINPLACE_CMD} 's|gcc|${CC}|; s|-O2.*|${CFLAGS}|' \
|
|
${WRKSRC}/conf-compile/conf-cc \
|
|
${WRKSRC}/conf-compile/conf-ld
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && package/compile)
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/command/* ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
|
|
${INSTALL_DATA} ${WRKSRC}/include/* \
|
|
${STAGEDIR}${PREFIX}/include/${PORTNAME}
|
|
${INSTALL_DATA} ${WRKSRC}/library/* ${STAGEDIR}${PREFIX}/lib
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/etc/* ${STAGEDIR}${EXAMPLESDIR}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|