freebsd-ports/math/pgcalc/Makefile
Jeremy Messenger 789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00

47 lines
1.2 KiB
Makefile

# New ports collection makefile for: PG Calculator
# Date created: 20 Mar 2005
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pgcalc2
DISTVERSION= 2.2-10
PORTREVISION= 1
CATEGORIES= math kde
MASTER_SITES= http://www.pgcalc.net/
MAINTAINER= ports@FreeBSD.org
COMMENT= A powerful scientific skinnable calculator
USE_QT_VER= 3
USE_KDELIBS_VER= 3
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:22
INSTALLS_ICONS= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
OPTIONS= ARTS "Build with aRts support" on
.include <bsd.port.pre.mk>
.if !defined(WITH_ARTS)
CONFIGURE_ARGS+= --without-arts
.endif
post-extract:
# Fix permissions for ``make clean'' to work
@${CHMOD} 755 ${WRKSRC}/skins/HP49G+ ${WRKSRC}/admin/install-sh
@${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>