On Mon, Mar 09, 2009 at 09:10:28PM +0100, Matthias Kilian wrote:
> I'll change the port so that it
>
> a) always detects ${MODPY_BIN} at configure time and uses it at build
> time,
>
> b) doesn't fail when linked.
HORRIBLE PATCH ALERT!
Please test. I could need some hints from the python gurus, especially
about the python${MODPY_VERSION}-config hack -- how is python2.5-config
supposed to be used at all together with python.port.mk?
I've also an update to a newer version of fontforge, but I want to
get this fix in first.
Ciao,
Kili
Index: Makefile
===================================================================
RCS file: /cvs/ports/print/fontforge/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile 27 Oct 2008 17:58:52 -0000 1.12
+++ Makefile 9 Mar 2009 21:01:56 -0000
@@ -5,7 +5,7 @@ SHARED_ONLY= Yes
COMMENT= vector font editor/converter
DISTNAME= fontforge_full-20080927
-PKGNAME= ${DISTNAME:S,_full,,}
+PKGNAME= ${DISTNAME:S,_full,,}p0
EXTRACT_SUFX= .tar.bz2
SHARED_LIBS= fontforge 1.0 \
gdraw 3.0 \
@@ -28,15 +28,17 @@ PERMIT_DISTFILES_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fontforge/}
WANTLIB= ICE SM X11 Xau Xdmcp Xext Xi c freetype m \
- pthread xkbfile xkbui z
+ pthread util xkbfile xkbui z
MODULES= devel/gettext lang/python
+MODPY_VERSION= 2.5
LIB_DEPENDS= png.>=5::graphics/png \
tiff.>=38::graphics/tiff \
ungif.>=5::graphics/libungif \
jpeg.>=62::graphics/jpeg \
- xml2.>=9::textproc/libxml
+ xml2.>=9::textproc/libxml \
+ ${MODPY_LIB_DEPENDS}
WRKDIST= ${WRKDIR}/${DISTNAME:S,_full,,}
@@ -46,7 +48,10 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}
-I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib \
-lintl -liconv -lz"
-CONFIGURE_ARGS= --with-regular-link --without-freetype-src
+CONFIGURE_ARGS= --without-freetype-src \
+ --with-python=${MODPY_BIN} \
+ --with-python-lib="$$(python${MODPY_VERSION}-config
--libs)" \
+ --with-regular-link
USE_GMAKE= Yes
USE_LIBTOOL= Yes
USE_X11= Yes