mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Add option to install GUI configuretion utility for librcc
- Disable BDB/LibTranslate support by default, it causes breakages in depended apps at i386 only [1] Noticed by: myself, Alberto Villa, Alexander Yerenkow, David Johnson [1] Approved by: miwi, tabthorpe (mentors implicit)
This commit is contained in:
parent
af39f77ee7
commit
4f6eca8ec5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247939
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= librcc
|
||||
PORTVERSION= 0.2.9
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= SF/rusxmms/Charset%20Conversion%20Library/${PORTVERSION} \
|
||||
http://dside.dyndns.org/files/rusxmms/
|
||||
@ -29,9 +30,10 @@ USE_AUTOTOOLS= autoheader:262
|
||||
CPPFLAGS= -I${LOCALBASE}/include
|
||||
LIBS= -L${LOCALBASE}/lib
|
||||
|
||||
OPTIONS= BDB "Translation database support" on \
|
||||
TRANSLATE "Online translation support" on \
|
||||
GTK2 "Gtk+2 frontend" on
|
||||
OPTIONS= BDB "Translation database support" off \
|
||||
TRANSLATE "Online translation support" off \
|
||||
TOOLS "Install recode configuration utility" on \
|
||||
GTK2 "Use Gtk2 library/frontend" on
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
@ -59,8 +61,23 @@ CONFIGURE_ARGS+=--disable-glib1 --disable-gtk1
|
||||
PLIST_SUB+= WITH_GTK2="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TOOLS)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-rcc-config
|
||||
PLIST_SUB+= TOOLS=""
|
||||
.else
|
||||
PLIST_SUB+= TOOLS="@comment "
|
||||
.endif
|
||||
|
||||
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
|
||||
LIBS="${LIBS}" \
|
||||
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
||||
|
||||
pre-everything::
|
||||
.if ${ARCH} == "i386"
|
||||
.if defined(WITH_BDB) || defined (WITH_TRANSLATE)
|
||||
@${ECHO} 'BDB/LibTranslate support may cause breakages in depended apps on ${ARCH}'
|
||||
@${ECHO} 'Use it with caution'
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
23
devel/librcc/files/extrapatch-rcc-config
Normal file
23
devel/librcc/files/extrapatch-rcc-config
Normal file
@ -0,0 +1,23 @@
|
||||
--- Makefile.in.orig 2009-10-11 10:58:12.000000000 +1100
|
||||
+++ Makefile.in 2010-01-13 00:18:18.951041257 +1000
|
||||
@@ -223,7 +223,7 @@
|
||||
target_alias = @target_alias@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
-SUBDIRS = src engines external ui
|
||||
+SUBDIRS = src engines external ui examples
|
||||
EXTRA_DIST = librcd.spec
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
all: config.h
|
||||
--- examples/Makefile.in.orig 2009-10-11 10:58:12.000000000 +1100
|
||||
+++ examples/Makefile.in 2010-01-13 00:16:51.098228400 +1000
|
||||
@@ -31,8 +31,7 @@
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
-bin_PROGRAMS = example1$(EXEEXT) example2$(EXEEXT) $(am__EXEEXT_1) \
|
||||
- $(am__EXEEXT_2)
|
||||
+bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2)
|
||||
@HAVE_GTK_TRUE@am__append_1 = rcc-gtk-config
|
||||
@HAVE_GTK2_TRUE@am__append_2 = rcc-gtk2-config
|
||||
subdir = examples
|
@ -1,3 +1,5 @@
|
||||
%%TOOLS%%bin/rcc-gtk-config
|
||||
%%TOOLS%%%%WITH_GTK2%%bin/rcc-gtk2-config
|
||||
include/librcc.h
|
||||
include/librccui.h
|
||||
lib/librcc.a
|
||||
|
Loading…
Reference in New Issue
Block a user