aboutsummaryrefslogtreecommitdiff
path: root/games/gtypist
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2013-09-30 16:16:06 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2013-09-30 16:16:06 +0000
commit0fd3526defc5de4bfb06e54a28f987d40c67c9a9 (patch)
tree3e9ee2ef30afc497ab1d053fe0f3c5ddc1bfac12 /games/gtypist
parentc7bfbb845537e43de09a201357205abfeac368c6 (diff)
Notes
Diffstat (limited to 'games/gtypist')
-rw-r--r--games/gtypist/Makefile18
-rw-r--r--games/gtypist/files/patch-src_Makefile.in11
-rw-r--r--games/gtypist/pkg-plist2
3 files changed, 19 insertions, 12 deletions
diff --git a/games/gtypist/Makefile b/games/gtypist/Makefile
index eafbfdd7e0a7..6ad0c28f9676 100644
--- a/games/gtypist/Makefile
+++ b/games/gtypist/Makefile
@@ -15,18 +15,12 @@ CONFIGURE_ENV= EMACS=no
CPPFLAGS= -I${WRKDIR}/include
INFO= gtypist gtypist.cs gtypist.es
-MAN1= gtypist.1 typefortune.1
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+
+OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
+
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
# wide curses header expected at <ncursesw/ncurses.h>
pre-configure:
diff --git a/games/gtypist/files/patch-src_Makefile.in b/games/gtypist/files/patch-src_Makefile.in
new file mode 100644
index 000000000000..b31d9b8ac02e
--- /dev/null
+++ b/games/gtypist/files/patch-src_Makefile.in
@@ -0,0 +1,11 @@
+--- src/Makefile.in.orig 2013-06-05 20:50:08.000000000 +0200
++++ src/Makefile.in 2013-09-30 18:05:37.000000000 +0200
+@@ -358,7 +358,7 @@ top_srcdir = @top_srcdir@
+ gtypist_SOURCES = gtypist.c cursmenu.c script.c error.c getopt.c getopt1.c \
+ cursmenu.h error.h getopt.h gettext.h gtypist.h script.h utf8.c utf8.h
+
+-gtypist_LDADD = @LIBINTL@
++gtypist_LDADD = @LIBINTL@ @LIBICONV@
+ AM_CPPFLAGS = -I../intl \
+ -DDATADIR=\"$(pkgdatadir)\" \
+ -DLOCALEDIR=\"$(datadir)/locale\"
diff --git a/games/gtypist/pkg-plist b/games/gtypist/pkg-plist
index e7a2bd8dd438..6eaf129e2407 100644
--- a/games/gtypist/pkg-plist
+++ b/games/gtypist/pkg-plist
@@ -1,6 +1,8 @@
@comment $FreeBSD$
bin/gtypist
bin/typefortune
+man/man1/gtypist.1.gz
+man/man1/typefortune.1.gz
share/gtypist/c.typ
share/gtypist/cs.typ
share/gtypist/d.typ