From b7c91068647d59bfc07fb23cee0e85e0c449ab7f Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Wed, 30 Jul 2014 00:48:47 +0000 Subject: [PATCH] - Unbreak by copying patch from poco-devel - Fix TEST and SAMPLES options - Fix plist - Strip binaries and libraries This port and devel/poco would seem to have been abandoned by the maintainer? --- devel/poco-ssl/Makefile | 17 +++- .../poco-ssl/files/patch-build-config-FreeBSD | 98 +++++++++++++++++++ devel/poco-ssl/pkg-plist | 17 ++-- 3 files changed, 122 insertions(+), 10 deletions(-) create mode 100644 devel/poco-ssl/files/patch-build-config-FreeBSD diff --git a/devel/poco-ssl/Makefile b/devel/poco-ssl/Makefile index 86aac450e926..f985f045b726 100644 --- a/devel/poco-ssl/Makefile +++ b/devel/poco-ssl/Makefile @@ -23,7 +23,8 @@ CONFIGURE_ARGS= --prefix=${PREFIX} --config=FreeBSD USE_LDCONFIG= yes OPTIONS_DEFINE= TEST SAMPLES MYSQL SQLITE ODBC -OPTIONS_DEFAULT= MYSQL SQLITE +OPTIONS_DEFAULT=MYSQL SQLITE +OPTIONS_SUB= yes SAMPLES_DESC= Build sample programs TEST_CONFIGURE_OFF= --no-tests @@ -38,4 +39,18 @@ MYSQL_CONFIGURE_OFF= --omit=Data/MySQL SQLITE_USE= SQLITE=yes SQLITE_CONFIGURE_OFF= --omit=Data/SQLite +.include + +post-patch: +.if empty(PORT_OPTIONS:MTEST) + @${REINPLACE_CMD} -e '/^all:/s/tests//' ${WRKSRC}/Makefile +.endif +.if empty(PORT_OPTIONS:MSAMPLES) + @${REINPLACE_CMD} -e '/^all:/s/samples//' ${WRKSRC}/Makefile +.endif + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*d + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*d.so.* + .include diff --git a/devel/poco-ssl/files/patch-build-config-FreeBSD b/devel/poco-ssl/files/patch-build-config-FreeBSD new file mode 100644 index 000000000000..2fa7b16e7d2c --- /dev/null +++ b/devel/poco-ssl/files/patch-build-config-FreeBSD @@ -0,0 +1,98 @@ +--- build/config/FreeBSD.orig 2014-04-29 20:44:44.000000000 -0700 ++++ build/config/FreeBSD 2014-04-29 20:50:10.000000000 -0700 +@@ -15,57 +15,57 @@ + # + # Define Tools + # +-CC = gcc +-CXX = g++ +-LINK = $(CXX) +-LIB = ar -cr +-RANLIB = ranlib +-SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -o $@ +-SHLIBLN = $(POCO_BASE)/build/script/shlibln +-DEP = $(POCO_BASE)/build/script/makedepend.gcc +-STRIP = strip +-SHELL = sh +-RM = rm -rf +-CP = cp +-MKDIR = mkdir -p ++CC ?= cc ++CXX ?= c++ ++LINK ?= $(CXX) ++LIB ?= ar -cr ++RANLIB ?= ranlib ++SHLIB ?= $(CXX) -shared -Wl,-soname,$(notdir $@) -o $@ ++SHLIBLN ?= $(POCO_BASE)/build/script/shlibln ++DEP ?= $(POCO_BASE)/build/script/makedepend.gcc ++STRIP ?= strip ++SHELL ?= sh ++RM ?= rm -rf ++CP ?= cp ++MKDIR ?= mkdir -p + + # + # Extension for Shared Libraries + # +-SHAREDLIBEXT = .so.$(target_version) +-SHAREDLIBLINKEXT = .so ++SHAREDLIBEXT ?= .so.$(target_version) ++SHAREDLIBLINKEXT ?= .so + + # + # Compiler and Linker Flags + # +-CFLAGS = +-CFLAGS32 = +-CFLAGS64 = +-CXXFLAGS = +-CXXFLAGS32 = +-CXXFLAGS64 = +-LINKFLAGS = +-LINKFLAGS32 = +-LINKFLAGS64 = +-STATICOPT_CC = +-STATICOPT_CXX = +-STATICOPT_LINK = -static +-SHAREDOPT_CC = -fPIC +-SHAREDOPT_CXX = -fPIC +-SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH) +-DEBUGOPT_CC = -g -D_DEBUG +-DEBUGOPT_CXX = -g -D_DEBUG +-DEBUGOPT_LINK = -g +-RELEASEOPT_CC = -O2 -DNDEBUG +-RELEASEOPT_CXX = -O2 -DNDEBUG +-RELEASEOPT_LINK = -O2 ++CFLAGS ?= -I/usr/local/include ++CFLAGS32 ?= -I/usr/local/include ++CFLAGS64 ?= -I/usr/local/include ++CXXFLAGS ?= -I/usr/local/include ++CXXFLAGS32 ?= -I/usr/local/include ++CXXFLAGS64 ?= -I/usr/local/include ++LINKFLAGS ?= -L/usr/local/lib ++LINKFLAGS32 ?= ++LINKFLAGS64 ?= ++STATICOPT_CC ?= ++STATICOPT_CXX ?= ++STATICOPT_LINK ?= -static ++SHAREDOPT_CC ?= -fPIC ++SHAREDOPT_CXX ?= -fPIC ++SHAREDOPT_LINK ?= -Wl,-rpath,$(LIBPATH) ++DEBUGOPT_CC ?= -g -D_DEBUG ++DEBUGOPT_CXX ?= -g -D_DEBUG ++DEBUGOPT_LINK ?= -g ++RELEASEOPT_CC ?= -O2 -DNDEBUG ++RELEASEOPT_CXX ?= -O2 -DNDEBUG ++RELEASEOPT_LINK ?= -O2 + + # + # System Specific Flags + # +-SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE ++SYSFLAGS ?= -D_REENTRANT -D_THREAD_SAFE + + # + # System Specific Libraries + # +-SYSLIBS ?= -lpthread -L /usr/local/lib ++SYSLIBS ?= -lpthread -L/usr/local/lib diff --git a/devel/poco-ssl/pkg-plist b/devel/poco-ssl/pkg-plist index 38cc1e48bf30..ef9b70b55061 100644 --- a/devel/poco-ssl/pkg-plist +++ b/devel/poco-ssl/pkg-plist @@ -344,7 +344,6 @@ include/Poco/UTF8String.h include/Poco/UUID.h include/Poco/UUIDGenerator.h include/Poco/ValidArgs.h -include/Poco/._Version.h include/Poco/SAX/XMLReader.h include/Poco/SAX/AttributesImpl.h include/Poco/SAX/ContentHandler.h @@ -645,14 +644,14 @@ lib/libPocoCryptod.so lib/libPocoCryptod.so.12 lib/libPocoData.so lib/libPocoData.so.12 -lib/libPocoDataMySQL.so -lib/libPocoDataMySQL.so.12 -lib/libPocoDataMySQLd.so -lib/libPocoDataMySQLd.so.12 -lib/libPocoDataSQLite.so -lib/libPocoDataSQLite.so.12 -lib/libPocoDataSQLited.so -lib/libPocoDataSQLited.so.12 +%%MYSQL%%lib/libPocoDataMySQL.so +%%MYSQL%%lib/libPocoDataMySQL.so.12 +%%MYSQL%%lib/libPocoDataMySQLd.so +%%MYSQL%%lib/libPocoDataMySQLd.so.12 +%%SQLITE%%lib/libPocoDataSQLite.so +%%SQLITE%%lib/libPocoDataSQLite.so.12 +%%SQLITE%%lib/libPocoDataSQLited.so +%%SQLITE%%lib/libPocoDataSQLited.so.12 lib/libPocoDatad.so lib/libPocoDatad.so.12 lib/libPocoFoundation.so