mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
Unbreak the port and modernize.
This commit is contained in:
parent
5356433cdc
commit
9c45bc9795
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=422163
@ -3,36 +3,34 @@
|
|||||||
|
|
||||||
PORTNAME= libhangul
|
PORTNAME= libhangul
|
||||||
PORTVERSION= 0.1.0
|
PORTVERSION= 0.1.0
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
CATEGORIES= korean
|
CATEGORIES= korean
|
||||||
MASTER_SITES= GOOGLE_CODE
|
|
||||||
|
|
||||||
MAINTAINER= jkim@FreeBSD.org
|
MAINTAINER= jkim@FreeBSD.org
|
||||||
COMMENT= Library for Hangul processing
|
COMMENT= Library for Hangul processing
|
||||||
|
|
||||||
LICENSE= LGPL21
|
LICENSE= LGPL21+
|
||||||
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||||
|
|
||||||
BROKEN= Unfetchable (google code has gone away)
|
TEST_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/check.pc:devel/libcheck
|
||||||
|
|
||||||
|
GH_ACCOUNT= choehwanjin
|
||||||
|
GH_TAGNAME= 9fe2d4e
|
||||||
|
USE_GITHUB= yes
|
||||||
|
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
OPTIONS_DEFINE= NLS
|
PATHFIX_MAKEFILEIN= Makefile.am
|
||||||
OPTIONS_SUB= NLS
|
TEST_TARGET= test
|
||||||
|
TEST_WRKSRC= ${WRKSRC}/test
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
USES= iconv libtool pkgconfig
|
USES= autoreconf iconv libtool pathfix pkgconfig
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
OPTIONS_DEFINE= NLS
|
||||||
|
OPTIONS_SUB= yes
|
||||||
|
NLS_CONFIGURE_ENABLE= nls
|
||||||
|
NLS_USES= gettext
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MNLS}
|
post-test:
|
||||||
USES+= gettext
|
@${TEST_WRKSRC}/test
|
||||||
CONFIGURE_ARGS= --enable-nls
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS= --disable-nls
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if exists(${LOCALBASE}/libdata/pkgconfig/check.pc)
|
|
||||||
test: build
|
|
||||||
@( cd ${WRKSRC}/test && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} )
|
|
||||||
@( cd ${WRKSRC}/test && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} test && ./test )
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
SHA256 (libhangul-0.1.0.tar.gz) = 5905aa5c557d8d46e190fec1afdd75babf3bc086ef286b42007572703658295a
|
TIMESTAMP = 1473878096
|
||||||
SIZE (libhangul-0.1.0.tar.gz) = 2899845
|
SHA256 (choehwanjin-libhangul-0.1.0-9fe2d4e_GH0.tar.gz) = f7f36f051b9b88f77be4849ab1b2ad13f7812440547e9cd9bf4caed0742e9a2d
|
||||||
|
SIZE (choehwanjin-libhangul-0.1.0-9fe2d4e_GH0.tar.gz) = 3981418
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
--- Makefile.in.orig 2011-03-29 02:50:33.000000000 +0900
|
|
||||||
+++ Makefile.in 2011-03-29 02:47:59.000000000 +0900
|
|
||||||
@@ -270,7 +270,7 @@
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
SUBDIRS = hangul data tools po
|
|
||||||
DIST_SUBDIRS = hangul data tools po test
|
|
||||||
-pkgconfigdir = $(libdir)/pkgconfig
|
|
||||||
+pkgconfigdir = $(prefix)/libdata/pkgconfig
|
|
||||||
pkgconfig_DATA = libhangul.pc
|
|
||||||
EXTRA_DIST = \
|
|
||||||
config.rpath \
|
|
@ -1,18 +0,0 @@
|
|||||||
--- test/Makefile.in.orig 2011-12-14 03:50:49.000000000 +0900
|
|
||||||
+++ test/Makefile.in 2011-12-14 03:53:19.000000000 +0900
|
|
||||||
@@ -235,12 +235,12 @@
|
|
||||||
top_build_prefix = @top_build_prefix@
|
|
||||||
top_builddir = @top_builddir@
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
-hangul_CFLAGS =
|
|
||||||
+hangul_CFLAGS = -I$(LOCALBASE)/include
|
|
||||||
hangul_SOURCES = hangul.c
|
|
||||||
-hangul_LDADD = ../hangul/libhangul.la $(LTLIBINTL) $(LTLIBICONV)
|
|
||||||
+hangul_LDADD = $(top_builddir)/hangul/libhangul.la $(LTLIBINTL) $(LTLIBICONV)
|
|
||||||
hanja_CFLAGS =
|
|
||||||
hanja_SOURCES = hanja.c
|
|
||||||
-hanja_LDADD = ../hangul/libhangul.la $(LTLIBINTL)
|
|
||||||
+hanja_LDADD = $(top_builddir)/hangul/libhangul.la $(LTLIBINTL)
|
|
||||||
test_SOURCES = test.c ../hangul/hangul.h
|
|
||||||
test_CFLAGS = $(CHECK_CFLAGS)
|
|
||||||
test_LDADD = $(CHECK_LIBS) $(top_builddir)/hangul/libhangul.la $(LTLIBINTL)
|
|
@ -1,13 +0,0 @@
|
|||||||
--- tools/Makefile.in.orig 2011-12-14 03:54:37.000000000 +0900
|
|
||||||
+++ tools/Makefile.in 2011-12-14 03:55:19.000000000 +0900
|
|
||||||
@@ -220,8 +220,8 @@
|
|
||||||
top_builddir = @top_builddir@
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
hangul_SOURCES = hangul.c
|
|
||||||
-hangul_CFLAGS = -DLOCALEDIR=\"$(localedir)\"
|
|
||||||
-hangul_LDADD = ../hangul/libhangul.la $(LTLIBINTL) $(LTLIBICONV)
|
|
||||||
+hangul_CFLAGS = -I$(LOCALBASE)/include -DLOCALEDIR=\"$(localedir)\"
|
|
||||||
+hangul_LDADD = $(top_builddir)/hangul/libhangul.la $(LTLIBINTL) $(LTLIBICONV)
|
|
||||||
all: all-am
|
|
||||||
|
|
||||||
.SUFFIXES:
|
|
Loading…
Reference in New Issue
Block a user