1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/misc/owrep/Makefile
Tobias Kortkamp bd4f839b1b misc/owrep: Update to 1.2
- Make PREFIX-safe

PR:		223801, 226535
Submitted by:	bob@eager.cx (maintainer)
2018-03-11 19:33:00 +00:00

29 lines
733 B
Makefile

# $FreeBSD$
PORTNAME= owrep
DISTVERSION= 1.2
CATEGORIES= misc
MASTER_SITES= http://www.ml1.org.uk/distfiles/ \
http://www.ancientgeek.org.uk/distfiles/
MAINTAINER= bob@eager.cx
COMMENT= Weather reporting program using openweathermap.org
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libexpat.so:textproc/expat2
USES= localbase:ldflags zip
post-patch:
@${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' \
${WRKSRC}/owrep.c ${WRKSRC}/owrep.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/owrep ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/owrep.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/owrep.conf.5 ${STAGEDIR}${PREFIX}/man/man5
${INSTALL_DATA} ${WRKSRC}/owrep.conf.sample ${STAGEDIR}${PREFIX}/etc
.include <bsd.port.mk>