freebsd-ports/finance/ledgersmb12/Makefile
Mathieu Arnold 21a283f3be Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.

Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.

Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3336
2015-08-17 14:20:40 +00:00

42 lines
1.2 KiB
Makefile

# Created by: anarcat@anarcat.ath.cx
# $FreeBSD$
PORTNAME= ledgersmb
PORTVERSION= 1.2.17
PORTREVISION= 2
CATEGORIES= finance perl5
MASTER_SITES= SF/ledger-smb/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Double entry accounting system
BUILD_DEPENDS= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg \
p5-MIME-Lite>=0:${PORTSDIR}/mail/p5-MIME-Lite \
p5-Config-Std>=0:${PORTSDIR}/devel/p5-Config-Std
RUN_DEPENDS:= ${BUILD_DEPENDS}
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
NO_ARCH= yes
USES= perl5 shebangfix
SHEBANG_FILES= utils/devel/chart-load-test.sh \
utils/devel/find-use \
utils/pos/pos-hardware-client-startup-script
USE_PERL5= run build patch
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} -i '' -e 's|/usr/bin/perl|${perl_CMD}|' \
`${FIND} ${WRKSRC} -name \*.pl`
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
${FILESDIR}/ledger-smb-httpd.conf.in \
> ${WRKDIR}/ledger-smb-httpd.conf
do-install:
@${CP} -R ${WRKSRC} ${STAGEDIR}${PREFIX}
@cd ${STAGEDIR}${PREFIX}/${PORTNAME} ; \
${CHMOD} 711 templates css spool
${INSTALL_DATA} ${WRKDIR}/ledger-smb-httpd.conf ${STAGEDIR}${PREFIX}/etc/
.include <bsd.port.mk>