1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- 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?
This commit is contained in:
Adam Weinberger 2014-07-30 00:48:47 +00:00
parent 5faa1e5e90
commit b7c9106864
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363420
3 changed files with 122 additions and 10 deletions

View File

@ -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 <bsd.port.options.mk>
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 <bsd.port.mk>

View File

@ -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

View File

@ -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