head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.54 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.52 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.50 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.48 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.46 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.44 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.42 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.40 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.38 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.36 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.34 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.32 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.30 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.28 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.26 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.24 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.22 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.20 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.18 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.16 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.14 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.12 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.10 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.8 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.6 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2-base:1.1 buildlink2:1.1.0.2; locks; strict; comment @# @; 1.4 date 2002.10.08.14.15.53; author martti; state dead; branches; next 1.3; 1.3 date 2002.09.20.11.44.15; author jlam; state Exp; branches; next 1.2; 1.2 date 2002.09.04.14.47.38; author agc; state Exp; branches; next 1.1; 1.1 date 2002.06.20.19.13.50; author jschauma; state Exp; branches 1.1.2.1 1.1.8.1; next ; 1.1.2.1 date 2002.06.20.19.13.50; author jlam; state dead; branches; next 1.1.2.2; 1.1.2.2 date 2002.06.23.18.53.48; author jlam; state Exp; branches; next ; 1.1.8.1 date 2002.10.24.16.59.52; author wiz; state Exp; branches; next ; desc @@ 1.4 log @Updated koffice to 1.2 * bug fixes * better filters * ... See http://www.koffice.org/announcements/changelog-1.2.phtml for a complete list of changes... @ text @# $NetBSD: Makefile.common,v 1.3 2002/09/20 11:44:15 jlam Exp $ CATEGORIES= misc kde VERSION= 1.1.1 HOMEPAGE= http://www.koffice.org/ COMMENT= KDE Office Suite with text processor, spreadsheet, etc. .include "../../mk/bsd.prefs.mk" REPLACE_PERL= kpresenter/kprconverter.pl # Ensure we export symbols in the linked shared object. LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} .if ${OPSYS} == "NetBSD" # On egcs-1.1.2, the C++ compiler system isn't quite ISO-compliant. It lacks # a std::auto_ptr implementation in , doesn't handle static inline # functions in headers properly (although that concept, in itself, is quite # flawed), and just plain has bugs when compiling large functions with # optimization. For certains parts of KOffice, we pass in # ${OPTIMIZATION_BUG_CXXFLAGS}, which is meant to be appended to # ${KDE_CXXFLAGS} so that it can turn off all code optimization by the # compiler. # MAKE_ENV+= OPTIMIZATION_BUG_CXXFLAGS="-O0" .endif post-install: @@# The global desktop template files need to be user-writeable, or @@# else users won't be able to alter them after copying them to @@# their local directories. ${CHMOD} u+w ${PREFIX}/share/kde/templates/.source/* @ 1.3 log @Don't put package specific stuff like USE_BUILDLINK_ONLY into the common Makefile, and include x11.buildlink.mk and bsd.pkg.mk separately. This will allow converting either to buildlink2 independently of the other. @ text @d1 1 a1 1 # $NetBSD: Makefile.common,v 1.2 2002/09/04 14:47:38 agc Exp $ @ 1.2 log @Apply patches from Lubomir Sedlacik in PR 18115 to generalise the linker flags used to export symbols by setting them on a per-OS basis. > many packages force -Wl,-export-dynamic which is not portable outside GNU ld > and cause problems e.g. on Solaris. some of these packages use if > conditionals either only for NetBSD or except SunOS, but the state is not > coherent and it may complicate later when support for new OS is added to > pkgsrc (e.g. ongoing work on HP-UX support). > > jlam proposed the following framework in discussion on tech-pkg: > > http://mail-index.netbsd.org/tech-pkg/2002/06/21/0009.html > > now, ${EXPORT_SYMBOLS_LDFLAGS} is used instead of directly defining > -Wl,-export-dynamic which is set in appropriate defs.*.mk to reasonable > values. packages should be converted to this framework by: > > 1) replacing LDFLAGS+= -Wl,-export-dynamic and LIBS+= -export-dynamic with: > > LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} > > 2) for use in patchfiles, add this variable to MAKE_ENV if needed: > > MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS} > > 3) replace occurances of -Wl,-export-dynamic and -export-dynamic in patch > files with: > > $(EXPORT_SYMBOLS_LDFLAGS) @ text @d1 1 a1 1 # $NetBSD: Makefile.common,v 1.1 2002/06/20 19:13:50 jschauma Exp $ a7 2 USE_BUILDLINK_ONLY= YES a32 3 .include "../../mk/x11.buildlink.mk" .include "../../mk/bsd.pkg.mk" @ 1.1 log @Split Makefile into Makefile and Makefile.common, so we can build koffice3 using most of the defined variables. (*This* koffice does not build under KDE3!) Point MAINTAINER -> me upon Hubert weaseling out ;-) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2002/03/13 17:37:27 fredb Exp $ d14 3 a17 2 LIBS+= -Wl,--export-dynamic @ 1.1.2.1 log @file Makefile.common was added on branch buildlink2 on 2002-06-23 18:53:48 +0000 @ text @d1 36 @ 1.1.2.2 log @Merge from pkgsrc-current to buildlink2 branch. @ text @a0 36 # $NetBSD: Makefile.common,v 1.1.2.1 2002/06/23 18:53:48 jlam Exp $ CATEGORIES= misc kde VERSION= 1.1.1 HOMEPAGE= http://www.koffice.org/ COMMENT= KDE Office Suite with text processor, spreadsheet, etc. USE_BUILDLINK_ONLY= YES .include "../../mk/bsd.prefs.mk" REPLACE_PERL= kpresenter/kprconverter.pl .if ${OPSYS} == "NetBSD" LIBS+= -Wl,--export-dynamic # On egcs-1.1.2, the C++ compiler system isn't quite ISO-compliant. It lacks # a std::auto_ptr implementation in , doesn't handle static inline # functions in headers properly (although that concept, in itself, is quite # flawed), and just plain has bugs when compiling large functions with # optimization. For certains parts of KOffice, we pass in # ${OPTIMIZATION_BUG_CXXFLAGS}, which is meant to be appended to # ${KDE_CXXFLAGS} so that it can turn off all code optimization by the # compiler. # MAKE_ENV+= OPTIMIZATION_BUG_CXXFLAGS="-O0" .endif post-install: @@# The global desktop template files need to be user-writeable, or @@# else users won't be able to alter them after copying them to @@# their local directories. ${CHMOD} u+w ${PREFIX}/share/kde/templates/.source/* .include "../../mk/x11.buildlink.mk" .include "../../mk/bsd.pkg.mk" @ 1.1.8.1 log @Pull the following up to the 1.6 branch (requested by agc): Apply patches from Lubomir Sedlacik in PR 18115 to generalise the linker flags used to export symbols by setting them on a per-OS basis. > many packages force -Wl,-export-dynamic which is not portable outside GNU ld > and cause problems e.g. on Solaris. some of these packages use if > conditionals either only for NetBSD or except SunOS, but the state is not > coherent and it may complicate later when support for new OS is added to > pkgsrc (e.g. ongoing work on HP-UX support). > > jlam proposed the following framework in discussion on tech-pkg: > > http://mail-index.netbsd.org/tech-pkg/2002/06/21/0009.html > > now, ${EXPORT_SYMBOLS_LDFLAGS} is used instead of directly defining > -Wl,-export-dynamic which is set in appropriate defs.*.mk to reasonable > values. packages should be converted to this framework by: > > 1) replacing LDFLAGS+= -Wl,-export-dynamic and LIBS+= -export-dynamic with: > > LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} > > 2) for use in patchfiles, add this variable to MAKE_ENV if needed: > > MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS} > > 3) replace occurances of -Wl,-export-dynamic and -export-dynamic in patch > files with: > > $(EXPORT_SYMBOLS_LDFLAGS) @ text @d1 1 a1 1 # $NetBSD: Makefile.common,v 1.2 2002/09/04 14:47:38 agc Exp $ d14 2 a15 2 # Ensure we export symbols in the linked shared object. LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} a16 1 .if ${OPSYS} == "NetBSD" @