1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/print/pdfmerge/Makefile
Dirk Meyer de78af3ac5 - update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
2010-03-28 06:47:48 +00:00

55 lines
1.3 KiB
Makefile

# New ports collection makefile for: pdfmerge
# Date created: Mar 15 2005
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= pdfmerge
PORTVERSION= 1.0
PORTREVISION= 4
CATEGORIES= print
MASTER_SITES= http://nivi.interfree.it/distfiles/${PORTNAME}/${PORTVERSION}/ \
http://web.hku.hk/cgi-bin/cgiwrap/kangsg/freeware/
DISTNAME= PDFMerge
EXTRACT_SUFX= .zip
MAINTAINER= nivit@FreeBSD.org
COMMENT= A shell script (with simple UI) to merge PDF files
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
USE_ZIP= yes
USE_GHOSTSCRIPT_RUN= yes
WRKSRC= ${WRKDIR}/Scripts
NO_BUILD= yes
NO_INSTALL_MANPAGES= yes
FIND_ARGS= \! -type d -and \! -name "*.orig" \! -name "*.txt" \! -name "*.bak"
LINK_OPTS?= -sf
SED_OPTS= -i .bak
post-patch:
@REPLACE_FILES=$$(${FIND} ${WRKSRC} ${FIND_ARGS} ); \
for FILE in $${REPLACE_FILES}; do \
${SED} ${SED_OPTS} \
-e "/%%LOCALBASE%%/s//${LOCALBASE:S/\//\\\//g}/g" \
-e "/%%DATADIR%%/s//${DATADIR:S/\//\\\//g}/g" $${FILE}; \
done;
do-install:
# Scripts
${MKDIR} ${DATADIR}; \
cd ${WRKSRC}; \
FILES=$$(${FIND} . ${FIND_ARGS} ); \
for FILE in $${FILES}; do \
${INSTALL_SCRIPT} $${FILE} ${DATADIR}/$${FILE}; \
done;
# Link to executable
FILE=merge_pdf; \
${LN} ${LINK_OPTS} ${DATADIR}/$${FILE} ${PREFIX}/bin/${PORTNAME};
.include <bsd.port.mk>