mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
5d34434429
PR: 158458 Submitted by: Ports Fury
57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
# New ports collection makefile for: pdfedit
|
|
# Date created: 2007-12-20
|
|
# Whom: alepulver
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pdfedit
|
|
PORTVERSION= 0.4.5
|
|
CATEGORIES= editors
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Free editor for manipulating PDF documents (QT3 GUI and CLI)
|
|
|
|
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
|
|
LIB_DEPENDS= boost_filesystem.4:${PORTSDIR}/devel/boost-libs \
|
|
t1.5:${PORTSDIR}/devel/t1lib
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/doc/LICENSE.GPL
|
|
|
|
USE_BZIP2= yes
|
|
USE_QT_VER= 3
|
|
USE_PERL5_BUILD=yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= QMAKESPEC="${LOCALBASE}/share/qt/mkspecs/freebsd-g++"
|
|
CONFIGURE_ARGS= --with-t1-library=${LOCALBASE}/lib \
|
|
--with-t1-includes=${LOCALBASE}/include \
|
|
--with-parallel-make=off
|
|
MAKE_ENV= ${CONFIGURE_ENV}
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
MAN1= pdfedit.1
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|-pedantic||g ; \
|
|
s| $$(OPTIM)||g ; \
|
|
s| $$(ARCH)||g ; \
|
|
s| -pipe.*$$||g ; \
|
|
s|^CFLAGS =|CFLAGS +=|g ; \
|
|
s|^CXXFLAGS =|CXXFLAGS +=|g' ${WRKSRC}/Makefile.flags.in
|
|
@${REINPLACE_CMD} -e \
|
|
'/QMAKE/s| make| $$MAKE|g' ${WRKSRC}/src/qsa/configure
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in Changelog README doc/AUTHORS
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|