mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
29cf7d5d06
While here: - Convert LIB_DEPENDS to new format - Remove userless pre.mk/post.mk
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# Created by: Nikola Kolev <koue@chaosophia.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= graffer
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://chaosophia.net/downloads/graffer/ \
|
|
http://ns1.chaosophia.net/downloads/graffer/
|
|
|
|
MAINTAINER= koue@chaosophia.net
|
|
COMMENT= Utility to render graphical statistics
|
|
|
|
LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
|
|
|
|
USES= iconv
|
|
MAKE_ARGS= "LD_GD=gd"
|
|
MAKE_END+= __MAKE_CONF=/dev/null
|
|
|
|
PLIST_FILES= bin/graffer \
|
|
etc/graffer/graffer.conf.example \
|
|
man/man8/graffer.8.gz
|
|
PLIST_DIRS= etc/graffer
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lgd|-l$${LD_GD}|; s| -lttf||' \
|
|
${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e "s|/etc/|${STAGEDIR}${PREFIX}/etc/|" \
|
|
${WRKSRC}/graffer.[c8]
|
|
@${REINPLACE_CMD} -e "s|/etc/|${STAGEDIR}${PREFIX}/etc/|" \
|
|
${WRKSRC}/graffer.conf.example
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/graffer ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/graffer.8 ${STAGEDIR}${PREFIX}/man/man8
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/graffer
|
|
${INSTALL_DATA} ${WRKSRC}/graffer.conf.example ${STAGEDIR}${PREFIX}/etc/graffer
|
|
|
|
.include <bsd.port.mk>
|