From bda5588150672990c41ff4ffe35d32b33c21b35a Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 15 Jun 2007 13:10:58 +0000 Subject: - Fix pstoedit detection in configure script, pstoedit switched to pkg-config recently - Style PR: ports/111400 Reported by: bf --- graphics/autotrace/Makefile | 9 ++++++--- graphics/autotrace/files/patch-configure | 13 ------------- 2 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 graphics/autotrace/files/patch-configure diff --git a/graphics/autotrace/Makefile b/graphics/autotrace/Makefile index 9b4a7cf4f203..5323cbddf6e8 100644 --- a/graphics/autotrace/Makefile +++ b/graphics/autotrace/Makefile @@ -7,7 +7,7 @@ PORTNAME= autotrace PORTVERSION= 0.31.1 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -21,7 +21,7 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ pstoedit.0:${PORTSDIR}/graphics/pstoedit USE_AUTOTOOLS= libtool:15 -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" \ CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/ming" @@ -29,9 +29,12 @@ USE_XLIB= yes MAN1= autotrace.1 -pre-patch: +post-patch: @${REINPLACE_CMD} -e \ 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|' \ ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e '/$$PSTOEDIT_CONFIG/ s|--version|--modversion| ; \ + s|$$PSTOEDIT_CONFIG $$pstoedit_args|pkg-config pstoedit| ; \ + /^PSTOEDIT_CONFIG=/ s|=.*$$|=pkg-config| ' ${WRKSRC}/configure .include diff --git a/graphics/autotrace/files/patch-configure b/graphics/autotrace/files/patch-configure deleted file mode 100644 index 3cb74ad296d7..000000000000 --- a/graphics/autotrace/files/patch-configure +++ /dev/null @@ -1,13 +0,0 @@ - -$FreeBSD$ - ---- configure 2002/09/12 11:32:09 1.1 -+++ configure 2002/09/12 11:32:32 -@@ -6509,6 +6509,7 @@ - - # This can be used to rebuild libtool when needed - LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" -+$ac_aux_dir/ltconfig $LIBTOOL_DEPS - - # Always use our own libtool. - LIBTOOL='$(SHELL) $(top_builddir)/libtool' -- cgit v1.2.3