diff options
author | minskim <minskim@pkgsrc.org> | 2004-02-29 17:54:13 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2004-02-29 17:54:13 +0000 |
commit | c96b46aa17364bf25c487b35281f00a9171eaa31 (patch) | |
tree | 764f3d4984c2ca3ff6d4534938686e44d3d0a492 /x11 | |
parent | 4e231649c241539d972a99a98cf6aed3baba26f0 (diff) | |
download | pkgsrc-c96b46aa17364bf25c487b35281f00a9171eaa31.tar.gz |
Add -R option in linking, so that scrollbar modules can be loaded
dynamically. Noted by Naoki Fukaumi on tech-pkg-ja@jp.NetBSD.org.
While here, replace sed/mv with SUBST_* and make them fix more files.
Bump PKGREVISION.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/mlterm/Makefile | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/x11/mlterm/Makefile b/x11/mlterm/Makefile index 8f5b84ff64c..f7870bfb5de 100644 --- a/x11/mlterm/Makefile +++ b/x11/mlterm/Makefile @@ -1,11 +1,12 @@ -# $NetBSD: Makefile,v 1.21 2004/02/25 17:15:42 minskim Exp $ +# $NetBSD: Makefile,v 1.22 2004/02/29 17:54:13 minskim Exp $ DISTNAME= mlterm-2.8.0 PKGNAME= ${DISTNAME}pl1 +PKGREVISION= 1 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mlterm/} -PATCHFILES= ${PKGNAME}.tar.gz +PATCHFILES= ${DISTNAME}pl1.tar.gz PATCH_SITES= ${MASTER_SITES} MAINTAINER= uebayasi@NetBSD.org @@ -29,16 +30,17 @@ CONFIGURE_ARGS+= --enable-anti-alias .endif CONFIGURE_ARGS+= --without-libiconv-prefix -post-patch: - @${FIND} ${WRKSRC} -name Makefile.in -print | \ - while read f; do \ - ${MV} $$f $${f}.orig; \ - ${SED} \ - -e 's|\(-[IL]\)/usr/local|\1${BUILDLINK_DIR}|g' \ - -e 's|\(-[IL]\)/usr/X11R6|\1${BUILDLINK_X11_DIR}|g' \ - -e 's|\(-[R]\)/usr/local[^[:space:]][^[:space:]]*||g' \ - $${f}.orig > $$f; \ - done +SUBST_CLASSES+= link +SUBST_MESSAGE.link= "Fixing hardcoded paths and link options." +SUBST_STAGE.link= post-patch +SUBST_FILES.link= Makefile.in */Makefile.in \ + */*/Makefile.in */*/*/Makefile.in \ + xwindow/x_screen.c xwindow/x_sb_view_factory.c \ + mlterm/ml_config_menu.c man/mlterm.1 +SUBST_SED.link= -e 's|-module|-R${X11BASE}/lib -module|g' \ + -e 's|\(-[R]\)/usr/local/lib||g' \ + -e 's|/usr/local/|${PREFIX}/|g' \ + -e 's|/usr/X11R6/|${X11BASE}/|g' .include "../../converters/libiconv/buildlink3.mk" .include "../../devel/glib/buildlink3.mk" |