summaryrefslogtreecommitdiff
path: root/ham
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-08-08 13:11:48 +0000
committermarino <marino@pkgsrc.org>2012-08-08 13:11:48 +0000
commit7ac5f08e6d30d0f979f9c7966307c8f6a42814db (patch)
tree7e718f4480daf774a3f1aca095817ebadc5c6639 /ham
parent2d2daeeb6a48b53b01335efebf46fedc1657052f (diff)
downloadpkgsrc-7ac5f08e6d30d0f979f9c7966307c8f6a42814db.tar.gz
ham/tnt: Fix build on DragonFly
Problem 1: $la and $lo would not expand with the intl/makefile I couldn't get SUBST_SED to manually replace them either. Use of MAKE_ENV also failed. Problem 2: DragonFly doesn't have base libintl. This package will not build without -lintl LDFLAG. Solution was to convert existing SUBST_SED into a patch and expand $la to "a" and $lo to "o" on the intl/Makefile.in file. Tested on both DragonFly and NetBSD
Diffstat (limited to 'ham')
-rw-r--r--ham/tnt/Makefile9
-rw-r--r--ham/tnt/distinfo3
-rw-r--r--ham/tnt/patches/patch-intl_Makefile.in67
3 files changed, 71 insertions, 8 deletions
diff --git a/ham/tnt/Makefile b/ham/tnt/Makefile
index a353ccafda9..e85725a5fae 100644
--- a/ham/tnt/Makefile
+++ b/ham/tnt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2011/04/22 13:43:53 obache Exp $
+# $NetBSD: Makefile,v 1.29 2012/08/08 13:11:48 marino Exp $
#
DISTNAME= tnt-1.9.2
@@ -20,12 +20,7 @@ USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
INFO_FILES= yes
-SUBST_CLASSES+= missing
-SUBST_MESSAGE.missing= Subst missing replacements with configure
-SUBST_STAGE.missing= post-configure
-SUBST_FILES.missing= intl/Makefile
-SUBST_SED.missing= -e 's,@GT_YES@,\#,g'
-SUBST_SED.missing+= -e 's,@GT_NO@,,g'
+LDFLAGS.DragonFly+= -lintl
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/ham/tnt/distinfo b/ham/tnt/distinfo
index 27f24b374b4..a7e1a266ef4 100644
--- a/ham/tnt/distinfo
+++ b/ham/tnt/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2009/02/16 19:20:16 joerg Exp $
+$NetBSD: distinfo,v 1.10 2012/08/08 13:11:48 marino Exp $
SHA1 (tnt-1.9.2.tar.gz) = 8826e7e730c3440113bf723e18bb136e91cef8f8
RMD160 (tnt-1.9.2.tar.gz) = 10e5812715d564f25797ff3d83124ad2b86f2a62
@@ -7,3 +7,4 @@ SHA1 (patch-aa) = f2b6c9f22ffd4ef418f5aab6ca179d656e0a563c
SHA1 (patch-ac) = 86865198639da69469c2766ec638898553eb7662
SHA1 (patch-ad) = 1735028a7a52cc75f83a3f3c9fd29a06c9dd0153
SHA1 (patch-ae) = 0f952e74159cd2eed714b7f3ab62bf54c9fbd177
+SHA1 (patch-intl_Makefile.in) = 57e58f81217d382bcb71d227e9184ae827f9ddd7
diff --git a/ham/tnt/patches/patch-intl_Makefile.in b/ham/tnt/patches/patch-intl_Makefile.in
new file mode 100644
index 00000000000..40bc972e2c3
--- /dev/null
+++ b/ham/tnt/patches/patch-intl_Makefile.in
@@ -0,0 +1,67 @@
+$NetBSD: patch-intl_Makefile.in,v 1.1 2012/08/08 13:11:48 marino Exp $
+
+--- intl/Makefile.in.orig 2000-01-06 01:16:49.000000000 +0000
++++ intl/Makefile.in
+@@ -62,11 +62,11 @@ SOURCES = $(COMSRCS) intl-compat.c cat-c
+ COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \
+ finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \
+ explodename.c
+-OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \
+-finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \
+-explodename.$lo
+-CATOBJS = cat-compat.$lo ../po/cat-id-tbl.$lo
+-GETTOBJS = intl-compat.$lo
++OBJECTS = @INTLOBJS@ bindtextdom.o dcgettext.o dgettext.o gettext.o \
++finddomain.o loadmsgcat.o localealias.o textdomain.o l10nflist.o \
++explodename.o
++CATOBJS = cat-compat.o ../po/cat-id-tbl.o
++GETTOBJS = intl-compat.o
+ DISTFILES.common = ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in \
+ xopen-msg.sed $(HEADERS) $(SOURCES)
+ DISTFILES.normal = VERSION
+@@ -83,7 +83,7 @@ INCLUDES = -I.. -I. -I$(top_srcdir)/intl
+
+ all: all-@USE_INCLUDED_LIBINTL@
+
+-all-yes: libintl.$la intlh.inst
++all-yes: libintl.a intlh.inst
+ all-no:
+
+ libintl.a: $(OBJECTS)
+@@ -95,8 +95,8 @@ libintl.la: $(OBJECTS)
+ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) \
+ -version-info 1:0 -rpath $(libdir)
+
+-../po/cat-id-tbl.$lo: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot
+- cd ../po && $(MAKE) cat-id-tbl.$lo
++../po/cat-id-tbl.o: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot
++ cd ../po && $(MAKE) cat-id-tbl.o
+
+ check: all
+
+@@ -151,8 +151,8 @@ uninstall:
+ info dvi:
+
+ $(OBJECTS): ../config.h libgettext.h
+-bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h
+-dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h
++bindtextdom.o finddomain.o loadmsgcat.o: gettextP.h gettext.h loadinfo.h
++dcgettext.o: gettextP.h gettext.h hash-string.h loadinfo.h
+
+ tags: TAGS
+
+@@ -202,12 +202,8 @@ Makefile: Makefile.in ../config.status
+ # The dependency for intlh.inst is different in gettext and all other
+ # packages. Because we cannot you GNU make features we have to solve
+ # the problem while rewriting Makefile.in.
+-@GT_YES@intlh.inst: intlh.inst.in ../config.status
+-@GT_YES@ cd .. \
+-@GT_YES@ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
+-@GT_YES@ $(SHELL) ./config.status
+-@GT_NO@.PHONY: intlh.inst
+-@GT_NO@intlh.inst:
++.PHONY: intlh.inst
++intlh.inst:
+
+ # Tell versions [3.59,3.63) of GNU make not to export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.