2005-03-20 13:04:35 -05:00
|
|
|
# New ports collection makefile for: PG Calculator
|
|
|
|
# Date created: 20 Mar 2005
|
|
|
|
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pgcalc2
|
2008-08-17 10:17:53 -04:00
|
|
|
DISTVERSION= 2.2-10
|
2005-03-20 13:04:35 -05:00
|
|
|
CATEGORIES= math kde
|
|
|
|
MASTER_SITES= http://www.pgcalc.net/
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-02-22 10:11:06 -05:00
|
|
|
COMMENT= A powerful scientific skinnable calculator
|
2005-03-20 13:04:35 -05:00
|
|
|
|
|
|
|
USE_QT_VER= 3
|
2006-11-06 12:26:38 -05:00
|
|
|
USE_KDELIBS_VER= 3
|
2005-03-20 13:04:35 -05:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 05:40:44 -05:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2006-11-06 12:26:38 -05:00
|
|
|
INSTALLS_ICONS= yes
|
2005-03-20 13:04:35 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
2008-08-22 20:31:33 -04:00
|
|
|
OPTIONS= ARTS "Build with aRts support" on
|
2005-03-20 13:04:35 -05:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITH_ARTS)
|
|
|
|
CONFIGURE_ARGS+= --without-arts
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
# Fix permissions for ``make clean'' to work
|
2008-08-18 16:50:26 -04:00
|
|
|
@${CHMOD} 755 ${WRKSRC}/skins/HP49G+ ${WRKSRC}/admin/install-sh
|
2005-03-20 13:04:35 -05:00
|
|
|
@${REINPLACE_CMD} -e 's,LIBS)$$,& $$(LIBPTHREAD),' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -E 's,cp ([^-]*).* -r$$,${CP} -r \1,' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
# Remove backup leftovers (since installs via recursive copy)
|
|
|
|
@${FIND} ${WRKSRC}/skins -name \*~ -delete
|
|
|
|
# Allow it to find its own skins
|
|
|
|
@${REINPLACE_CMD} -e 's,SkinPath =,& QString("${PREFIX}/share/apps/${PORTNAME}/skins/"); //,' \
|
|
|
|
${WRKSRC}/src/pgcalc.cpp
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|