1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/news/sn/Makefile
Mathieu Arnold 8d6597e0bb Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:16:16 +00:00

47 lines
1.1 KiB
Makefile

# Created by: Andreas Fehlner <fehlner@gmx.de>
# $FreeBSD$
PORTNAME= sn
PORTVERSION= 0.3.8
PORTREVISION= 2
CATEGORIES= news
MASTER_SITES= http://www.infa.abo.fi/~patrik/sn/files/ \
http://home.arcor.de/teambushido/fbsd_ports/ \
http://home.arcor.de/fehlner/fbsd_ports/
MAINTAINER= fehlner@gmx.de
COMMENT= Small news system for small sites serving
LICENSE= GPLv2
RUN_DEPENDS= bash:shells/bash
USES= gmake tar:bzip2
MAKE_ARGS+= PREFIX="${PREFIX}" LD="${CC}" CC="${CC}"
PORTDOCS= README CHANGES FAQ INSTALL INTERNALS \
THANKS TODO INSTALL.notes INSTALL.notes2 \
INSTALL.run INSTALL.upgrade
INSTALL_TARGET= strip install
OPTIONS_DEFINE= DOCS
# Try to fix parallel builds (-jX); respect CFLAGS
post-patch:
${REINPLACE_CMD} -e 's|sn\.a$$|& lib/libstuff.a| ; \
s|snlockf\.o$$|& lib/libstuff.a| ; \
s|-g -Wall -pedantic -O|${CFLAGS} -Wall -pedantic| ; \
s|strip |${STRIP_CMD} | ; \
s|/bin/bash|${LOCALBASE}/bin/bash|' \
${WRKSRC}/Makefile
pre-install:
@${MKDIR} ${STAGEDIR}/var/spool/news
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>