diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2014-07-06 12:29:21 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2014-07-06 12:29:21 +0000 |
commit | 072b35fbcb37d9c7417ae3524410dcb175ae148b (patch) | |
tree | b32bb9599c074180eac5bdcde26d9929bcc1adf7 /print/epsonepl | |
parent | d001a438c85775d6fa7cb0f3be01a5e63b959052 (diff) | |
download | ports-072b35fbcb37d9c7417ae3524410dcb175ae148b.tar.gz ports-072b35fbcb37d9c7417ae3524410dcb175ae148b.zip |
- Add staging support, allow it as regular user
- Convert to new LIB_DEPENDS format
- Use SUB_FILES for path substitution
- Unmute install commands
Notes
Notes:
svn path=/head/; revision=360889
Diffstat (limited to 'print/epsonepl')
-rw-r--r-- | print/epsonepl/Makefile | 15 | ||||
-rw-r--r-- | print/epsonepl/files/Makefile | 4 | ||||
-rw-r--r-- | print/epsonepl/files/pkg-message.in (renamed from print/epsonepl/pkg-message) | 2 | ||||
-rw-r--r-- | print/epsonepl/pkg-plist | 2 |
4 files changed, 12 insertions, 11 deletions
diff --git a/print/epsonepl/Makefile b/print/epsonepl/Makefile index 7b91fae18e9d..57c2c833a9d8 100644 --- a/print/epsonepl/Makefile +++ b/print/epsonepl/Makefile @@ -12,20 +12,21 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Printer filter for EPSON EPL-5700L etc -USE_GHOSTSCRIPT_RUN= yes +LIB_DEPENDS= libijs.so:${PORTSDIR}/print/libijs -LIB_DEPENDS= ijs.1:${PORTSDIR}/print/libijs +USES= uidfix +USE_GHOSTSCRIPT_RUN= yes MAKEFILE= ${FILESDIR}/Makefile +SUB_FILES= pkg-message -NO_STAGE= yes post-extract: @cd ${WRKSRC} && ${LS} ijs* | ${GREP} -v ${PORTNAME} | ${XARGS} ${RM} post-install: - @${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf.sample ${PREFIX}/etc - @${MKDIR} ${DATADIR} - @${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.apsfilter ${DATADIR} - @${SED} -e 's#%%PREFIX%%#${PREFIX}#' ${PKGMESSAGE} + ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf.sample \ + ${STAGEDIR}${PREFIX}/etc + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.apsfilter ${STAGEDIR}${DATADIR} .include <bsd.port.mk> diff --git a/print/epsonepl/files/Makefile b/print/epsonepl/files/Makefile index 41012fd94e9e..e43a6ac074d1 100644 --- a/print/epsonepl/files/Makefile +++ b/print/epsonepl/files/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ -DESTDIR= ${PREFIX} -BINDIR= /bin +DESTDIR= +BINDIR= ${PREFIX}/bin CFLAGS+= -I${LOCALBASE}/include/ijs LDADD= -L${LOCALBASE}/lib -lijs diff --git a/print/epsonepl/pkg-message b/print/epsonepl/files/pkg-message.in index 442892219773..e14a1f2085f4 100644 --- a/print/epsonepl/pkg-message +++ b/print/epsonepl/files/pkg-message.in @@ -4,6 +4,6 @@ You need to copy and customize %%PREFIX%%/etc/epsonepl.conf[.sample] If you're using apsfilter then have a look -at %%PREFIX%%/share/epsonepl/epsonepl.apsfilter +at %%DATADIR%%/epsonepl.apsfilter ------------------------------------------------------------------------- diff --git a/print/epsonepl/pkg-plist b/print/epsonepl/pkg-plist index c7f51a2098c8..42b80acc0f2c 100644 --- a/print/epsonepl/pkg-plist +++ b/print/epsonepl/pkg-plist @@ -1,5 +1,5 @@ bin/ijs_server_epsonepl bin/ps2epl etc/epsonepl.conf.sample -share/epsonepl/epsonepl.apsfilter +%%DATADIR%%/epsonepl.apsfilter @dirrm share/epsonepl |