aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-08-05 15:24:10 +0000
committerCy Schubert <cy@FreeBSD.org>2022-08-06 03:38:57 +0000
commit9ce4140c0c6697e1d677f608a9ff3247853791e3 (patch)
treec8d5a9ec21ef740a081c028b73989f2d6153e490
parent631e25046668841485bf51a4a341069d0c20344b (diff)
downloadports-9ce4140c0c6697e1d677f608a9ff3247853791e3.tar.gz
ports-9ce4140c0c6697e1d677f608a9ff3247853791e3.zip
x11/cde*: Rename cde to cde-24 and create cde meta port
In preparation of the introduction of CDE 2.5.0 to the ports tree, rename the existing cde port to cde-24 and add a new cde meta port. The reason for this is that CDE 2.5.0 appears to address some font issues which negatively affects legacy Xm and Xaw apps.
-rw-r--r--x11/Makefile1
-rw-r--r--x11/cde-24/Makefile128
-rw-r--r--x11/cde-24/distinfo (renamed from x11/cde/distinfo)0
-rw-r--r--x11/cde-24/files/dtcms.in (renamed from x11/cde/files/dtcms.in)0
-rw-r--r--x11/cde-24/files/dtlogin.in (renamed from x11/cde/files/dtlogin.in)0
-rw-r--r--x11/cde-24/files/patch-Makefile (renamed from x11/cde/files/patch-Makefile)0
-rw-r--r--x11/cde-24/files/patch-admin_IntegTools_dbTools_installCDE (renamed from x11/cde/files/patch-admin_IntegTools_dbTools_installCDE)0
-rw-r--r--x11/cde-24/files/patch-admin_IntegTools_post__install_freebsd_configMin.src (renamed from x11/cde/files/patch-admin_IntegTools_post__install_freebsd_configMin.src)0
-rw-r--r--x11/cde-24/files/patch-admin_IntegTools_post__install_freebsd_configRun.src (renamed from x11/cde/files/patch-admin_IntegTools_post__install_freebsd_configRun.src)0
-rw-r--r--x11/cde-24/files/patch-admin_IntegTools_post__install_freebsd_configShlibs.src (renamed from x11/cde/files/patch-admin_IntegTools_post__install_freebsd_configShlibs.src)0
-rw-r--r--x11/cde-24/files/patch-config_cf_Imake.cf (renamed from x11/cde/files/patch-config_cf_Imake.cf)0
-rw-r--r--x11/cde-24/files/patch-config_cf_Imake.rules (renamed from x11/cde/files/patch-config_cf_Imake.rules)0
-rw-r--r--x11/cde-24/files/patch-lib_DtHelp_Imakefile (renamed from x11/cde/files/patch-lib_DtHelp_Imakefile)0
-rw-r--r--x11/cde-24/files/patch-programs_dtcm_dtcm_calendarA.c (renamed from x11/cde/files/patch-programs_dtcm_dtcm_calendarA.c)0
-rw-r--r--x11/cde-24/files/patch-programs_dtinfo_DtMmdb_btree__berkeley_compat.h (renamed from x11/cde/files/patch-programs_dtinfo_DtMmdb_btree__berkeley_compat.h)0
-rw-r--r--x11/cde-24/files/patch-programs_dtinfo_DtMmdb_schema_store__desc.C (renamed from x11/cde/files/patch-programs_dtinfo_DtMmdb_schema_store__desc.C)0
-rw-r--r--x11/cde-24/files/patch-programs_dtinfo_DtMmdb_storage_spointer.h (renamed from x11/cde/files/patch-programs_dtinfo_DtMmdb_storage_spointer.h)0
-rw-r--r--x11/cde-24/files/patch-programs_dtinfo_DtMmdb_utility_atoi__pearson.C (renamed from x11/cde/files/patch-programs_dtinfo_DtMmdb_utility_atoi__pearson.C)0
-rw-r--r--x11/cde-24/files/patch-programs_dtksh_ksh93_src_lib_libast_hash_hashalloc.c (renamed from x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_hash_hashalloc.c)0
-rw-r--r--x11/cde-24/files/patch-programs_dtksh_ksh93_src_lib_libast_string_tokscan.c (renamed from x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_string_tokscan.c)0
-rw-r--r--x11/cde-24/files/pkg-message.in (renamed from x11/cde/files/pkg-message.in)0
-rw-r--r--x11/cde-24/pkg-descr (renamed from x11/cde/pkg-descr)0
-rw-r--r--x11/cde-24/pkg-plist (renamed from x11/cde/pkg-plist)0
-rw-r--r--x11/cde/Makefile126
24 files changed, 135 insertions, 120 deletions
diff --git a/x11/Makefile b/x11/Makefile
index 7ec94c17f581..2b62f0380cd5 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -29,6 +29,7 @@
SUBDIR += bmpanel2
SUBDIR += brisk-menu
SUBDIR += cde
+ SUBDIR += cde-24
SUBDIR += cinnamon
SUBDIR += cinnamon-desktop
SUBDIR += cinnamon-menus
diff --git a/x11/cde-24/Makefile b/x11/cde-24/Makefile
new file mode 100644
index 000000000000..1ef3415e9081
--- /dev/null
+++ b/x11/cde-24/Makefile
@@ -0,0 +1,128 @@
+PORTNAME= cde
+DISTVERSION= 2.4.0
+CATEGORIES= x11
+MASTER_SITES= SF/cdesktopenv/src/
+.if !defined(MASTERDIR)
+PKGNAMESUFFIX= -24
+.endif
+
+MAINTAINER= cy@FreeBSD.org
+COMMENT= Common Desktop Environment
+
+LICENSE= LGPL21
+
+BROKEN_mips64= fails to build: ./config/imake/imake: No such file or directory
+BROKEN_powerpc64= fails to build: ./config/imake/imake: No such file or directory
+BROKEN_i386= cannot bind to a temporary of type va_list
+
+BUILD_DEPENDS= ksh93:shells/ksh93 \
+ bdftopcf:x11-fonts/bdftopcf \
+ mkfontscale>=0:x11-fonts/mkfontscale \
+ biconv:converters/iconv \
+ ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:x11-fonts/fontconfig \
+ ${LOCALBASE}/libdata/pkgconfig/freetype2.pc:print/freetype2
+RUN_DEPENDS= ksh93:shells/ksh93 \
+ ${LOCALBASE}/bin/fc-cache:x11-fonts/fontconfig \
+ ${LOCALBASE}/libdata/pkgconfig/freetype2.pc:print/freetype2 \
+ xrdb:x11/xrdb \
+ xset:x11/xset
+
+USES= iconv:wchar_t jpeg motif perl5 shebangfix tcl:86 xorg
+SHEBANG_LANG= pl
+SHEBANG_FILES= programs/dtinfo/tools/bin/ccdate \
+ programs/dtdocbook/doc2sdl/docbook.tcl \
+ programs/dtdocbook/doc2sdl/dtdocbook
+USE_LDCONFIG= ${PREFIX}/dt/lib
+USE_RC_SUBR= dtcms dtlogin
+USE_XORG= ice sm x11 xau xdmcp xext xinerama xmu xscrnsaver xt
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
+ALL_TARGET= World
+MAKE_ARGS+= PERL=${PERL} "LOCAL_LDFLAGS=${LDFLAGS}"
+MAKE_JOBS_UNSAFE=yes
+MAKE_ENV= MALLOC_CONF=junk:false
+SUB_FILES= pkg-message
+LDFLAGS+= -z muldefs #--allow-multiple-definition
+
+post-patch:
+ @if [ -f /usr/include/iconv.h ]; then \
+ ${REINPLACE_CMD} -e 's!^[[:space:]]*const char .ip = (const char .) .bp!char *ip = *bp!' \
+ ${WRKSRC}/programs/dtmail/libDtMail/Common/Session.C \
+ ${WRKSRC}/programs/dtmail/libDtMail/RFC/RFCBodyPart.C; \
+ fi
+
+# From shells/ksh93
+ @${REINPLACE_CMD} -e 's|SF_FLAGS|SFIO_FLAGS|g' \
+ ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/include/sfio*.h \
+ ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/sfio/*.c \
+ ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/sfio/*.h
+
+# Speed up poudriere + qemu + native-xtools
+ @${REINPLACE_CMD} \
+ -e 's|CcCmd cc|CcCmd ${CC}|g' \
+ -e 's|CplusplusCmd c++|CplusplusCmd ${CXX}|g' \
+ -e 's|CppCmd /usr/bin/cpp|CppCmd ${CPP}|g' \
+ ${WRKSRC}/config/cf/FreeBSD.cf
+
+# Needed for armv6
+ @${REINPLACE_CMD} -e 's|__va_copy|va_copy|g' \
+ ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/hash/*.c \
+ ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/sfio/*.c \
+ ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/string/*.c
+
+# Fix all hardcoded path
+ @${REINPLACE_CMD} -e 's|/usr/bin/perl|${LOCALBASE}/bin/perl|g' \
+ ${WRKSRC}/config/cf/Imake.tmpl \
+ ${WRKSRC}/programs/dtinfo/tools/bin/ccdate
+ @${REINPLACE_CMD} -e 's|/bin/ksh|${LOCALBASE}/bin/ksh93|g' \
+ ${WRKSRC}/programs/dtopen/dtopen.src
+ @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|/usr/dt|${LOCALBASE}/dt|g ; \
+ s|/etc/dt|${LOCALBASE}/etc/dt|g'
+
+ @${REINPLACE_CMD} -e 's|STAGEDIR|${STAGEDIR}|g' -e \
+ 's|LOCALBASE|${LOCALBASE}|g' \
+ ${WRKSRC}/admin/IntegTools/dbTools/installCDE.src \
+ ${WRKSRC}/admin/IntegTools/post_install/freebsd/configRun.src \
+ ${WRKSRC}/admin/IntegTools/post_install/freebsd/configShlibs.src \
+ ${WRKSRC}/admin/IntegTools/post_install/freebsd/configMin.src
+
+# we need to remove a few LOCALBASE
+ @${REINPLACE_CMD} -e 's|${LOCALBASE}/etc/dtinfogen|/etc/dtinfogen|g' \
+ ${WRKSRC}/databases/CDE-RUN.src \
+ ${WRKSRC}/config/cf/cde.tmpl
+ @${REINPLACE_CMD} -e 's|${LOCALBASE}/etc/dtsr|/etc/dtsr|g' -e \
+ 's|${LOCALBASE}/etc/dtinfo_start|/etc/dtinfo_start|g' \
+ ${WRKSRC}/databases/CDE-RUN.src \
+ ${WRKSRC}/programs/tttypes/dtinfo_start.ptype \
+ ${WRKSRC}/programs/tttypes/dtinfo.ptype
+ @${REINPLACE_CMD} -e 's|${LOCALBASE}||g' \
+ ${WRKSRC}/programs/dtinfo/dtinfogen/infolib/etc/dtinfogen_worker.c
+
+# why redefine exit??
+ @${REINPLACE_CMD} -e '/void exit/d' \
+ ${WRKSRC}/lib/tt/bin/tt_type_comp/frozen.mp_types_lex.C
+# (time_t*) NULL is apparently too C-ish
+ @${REINPLACE_CMD} -e 's,(time_t) *NULL,nullptr,' \
+ ${WRKSRC}/programs/dtmail/libDtMail/Common/FileShare.C \
+ ${WRKSRC}/programs/dtmail/libDtMail/RFC/RFCMailBox.C
+
+do-install:
+ cd ${WRKSRC}/admin/IntegTools/dbTools && \
+ ./installCDE -s ${WRKSRC} -destdir ${STAGEDIR}
+ (cd ${STAGEDIR}${PREFIX}/dt/share/man && \
+ for m in 1 1m 3 4 5 6; do \
+ ${GZIP_CMD} man$$m/*.$$m; \
+ done)
+ ${INSTALL_DATA} ${WRKSRC}/lib/pam/libpam/pam.conf \
+ ${STAGEDIR}${PREFIX}/etc/pam.d/cde.conf
+
+post-install:
+ ${FIND} ${STAGEDIR}/${PREFIX}/dt -type f -exec ${SH} -c '${STRIP_CMD} {} > /dev/null 2>&1' \;
+ # Only a problem on armv7 so far
+ ${FIND} ${STAGEDIR}/${PREFIX}/dt -type f -name 'ecp.*' -delete
+.if !defined(MASTERDIR)
+ ${RM} ${STAGEDIR}/${PREFIX}/libdata/ldconfig/cde
+.endif
+
+.include <bsd.port.mk>
diff --git a/x11/cde/distinfo b/x11/cde-24/distinfo
index 567c823b4138..567c823b4138 100644
--- a/x11/cde/distinfo
+++ b/x11/cde-24/distinfo
diff --git a/x11/cde/files/dtcms.in b/x11/cde-24/files/dtcms.in
index 1afb03b937af..1afb03b937af 100644
--- a/x11/cde/files/dtcms.in
+++ b/x11/cde-24/files/dtcms.in
diff --git a/x11/cde/files/dtlogin.in b/x11/cde-24/files/dtlogin.in
index 570282e43fdd..570282e43fdd 100644
--- a/x11/cde/files/dtlogin.in
+++ b/x11/cde-24/files/dtlogin.in
diff --git a/x11/cde/files/patch-Makefile b/x11/cde-24/files/patch-Makefile
index 2c22ea54b01d..2c22ea54b01d 100644
--- a/x11/cde/files/patch-Makefile
+++ b/x11/cde-24/files/patch-Makefile
diff --git a/x11/cde/files/patch-admin_IntegTools_dbTools_installCDE b/x11/cde-24/files/patch-admin_IntegTools_dbTools_installCDE
index 65125aa543d4..65125aa543d4 100644
--- a/x11/cde/files/patch-admin_IntegTools_dbTools_installCDE
+++ b/x11/cde-24/files/patch-admin_IntegTools_dbTools_installCDE
diff --git a/x11/cde/files/patch-admin_IntegTools_post__install_freebsd_configMin.src b/x11/cde-24/files/patch-admin_IntegTools_post__install_freebsd_configMin.src
index 361269d0e35a..361269d0e35a 100644
--- a/x11/cde/files/patch-admin_IntegTools_post__install_freebsd_configMin.src
+++ b/x11/cde-24/files/patch-admin_IntegTools_post__install_freebsd_configMin.src
diff --git a/x11/cde/files/patch-admin_IntegTools_post__install_freebsd_configRun.src b/x11/cde-24/files/patch-admin_IntegTools_post__install_freebsd_configRun.src
index b74b734b9667..b74b734b9667 100644
--- a/x11/cde/files/patch-admin_IntegTools_post__install_freebsd_configRun.src
+++ b/x11/cde-24/files/patch-admin_IntegTools_post__install_freebsd_configRun.src
diff --git a/x11/cde/files/patch-admin_IntegTools_post__install_freebsd_configShlibs.src b/x11/cde-24/files/patch-admin_IntegTools_post__install_freebsd_configShlibs.src
index 860fb04e0da9..860fb04e0da9 100644
--- a/x11/cde/files/patch-admin_IntegTools_post__install_freebsd_configShlibs.src
+++ b/x11/cde-24/files/patch-admin_IntegTools_post__install_freebsd_configShlibs.src
diff --git a/x11/cde/files/patch-config_cf_Imake.cf b/x11/cde-24/files/patch-config_cf_Imake.cf
index c5f3c2e0b71a..c5f3c2e0b71a 100644
--- a/x11/cde/files/patch-config_cf_Imake.cf
+++ b/x11/cde-24/files/patch-config_cf_Imake.cf
diff --git a/x11/cde/files/patch-config_cf_Imake.rules b/x11/cde-24/files/patch-config_cf_Imake.rules
index e7852ef34d2f..e7852ef34d2f 100644
--- a/x11/cde/files/patch-config_cf_Imake.rules
+++ b/x11/cde-24/files/patch-config_cf_Imake.rules
diff --git a/x11/cde/files/patch-lib_DtHelp_Imakefile b/x11/cde-24/files/patch-lib_DtHelp_Imakefile
index b06027f746ee..b06027f746ee 100644
--- a/x11/cde/files/patch-lib_DtHelp_Imakefile
+++ b/x11/cde-24/files/patch-lib_DtHelp_Imakefile
diff --git a/x11/cde/files/patch-programs_dtcm_dtcm_calendarA.c b/x11/cde-24/files/patch-programs_dtcm_dtcm_calendarA.c
index ab3f91b3887e..ab3f91b3887e 100644
--- a/x11/cde/files/patch-programs_dtcm_dtcm_calendarA.c
+++ b/x11/cde-24/files/patch-programs_dtcm_dtcm_calendarA.c
diff --git a/x11/cde/files/patch-programs_dtinfo_DtMmdb_btree__berkeley_compat.h b/x11/cde-24/files/patch-programs_dtinfo_DtMmdb_btree__berkeley_compat.h
index b04314918f6e..b04314918f6e 100644
--- a/x11/cde/files/patch-programs_dtinfo_DtMmdb_btree__berkeley_compat.h
+++ b/x11/cde-24/files/patch-programs_dtinfo_DtMmdb_btree__berkeley_compat.h
diff --git a/x11/cde/files/patch-programs_dtinfo_DtMmdb_schema_store__desc.C b/x11/cde-24/files/patch-programs_dtinfo_DtMmdb_schema_store__desc.C
index 175de96d7e6f..175de96d7e6f 100644
--- a/x11/cde/files/patch-programs_dtinfo_DtMmdb_schema_store__desc.C
+++ b/x11/cde-24/files/patch-programs_dtinfo_DtMmdb_schema_store__desc.C
diff --git a/x11/cde/files/patch-programs_dtinfo_DtMmdb_storage_spointer.h b/x11/cde-24/files/patch-programs_dtinfo_DtMmdb_storage_spointer.h
index 6b9a5a8c3be3..6b9a5a8c3be3 100644
--- a/x11/cde/files/patch-programs_dtinfo_DtMmdb_storage_spointer.h
+++ b/x11/cde-24/files/patch-programs_dtinfo_DtMmdb_storage_spointer.h
diff --git a/x11/cde/files/patch-programs_dtinfo_DtMmdb_utility_atoi__pearson.C b/x11/cde-24/files/patch-programs_dtinfo_DtMmdb_utility_atoi__pearson.C
index 8f86f16517cb..8f86f16517cb 100644
--- a/x11/cde/files/patch-programs_dtinfo_DtMmdb_utility_atoi__pearson.C
+++ b/x11/cde-24/files/patch-programs_dtinfo_DtMmdb_utility_atoi__pearson.C
diff --git a/x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_hash_hashalloc.c b/x11/cde-24/files/patch-programs_dtksh_ksh93_src_lib_libast_hash_hashalloc.c
index e729a3b2dcf2..e729a3b2dcf2 100644
--- a/x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_hash_hashalloc.c
+++ b/x11/cde-24/files/patch-programs_dtksh_ksh93_src_lib_libast_hash_hashalloc.c
diff --git a/x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_string_tokscan.c b/x11/cde-24/files/patch-programs_dtksh_ksh93_src_lib_libast_string_tokscan.c
index 8e6ada6ebe27..8e6ada6ebe27 100644
--- a/x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_string_tokscan.c
+++ b/x11/cde-24/files/patch-programs_dtksh_ksh93_src_lib_libast_string_tokscan.c
diff --git a/x11/cde/files/pkg-message.in b/x11/cde-24/files/pkg-message.in
index 0473e1afad24..0473e1afad24 100644
--- a/x11/cde/files/pkg-message.in
+++ b/x11/cde-24/files/pkg-message.in
diff --git a/x11/cde/pkg-descr b/x11/cde-24/pkg-descr
index 477d67a8baf7..477d67a8baf7 100644
--- a/x11/cde/pkg-descr
+++ b/x11/cde-24/pkg-descr
diff --git a/x11/cde/pkg-plist b/x11/cde-24/pkg-plist
index fb3e0d71090c..fb3e0d71090c 100644
--- a/x11/cde/pkg-plist
+++ b/x11/cde-24/pkg-plist
diff --git a/x11/cde/Makefile b/x11/cde/Makefile
index c7c9b65ba024..bc0405b81bff 100644
--- a/x11/cde/Makefile
+++ b/x11/cde/Makefile
@@ -1,122 +1,8 @@
-PORTNAME= cde
-DISTVERSION= 2.4.0
-CATEGORIES= x11
-MASTER_SITES= SF/cdesktopenv/src/
+VERSIONS= 24
+# The reason we will keep our main CDE metaport at 2.4.3 is to
+# avoid a POLA violation due to font differences.
+CDE_VERSION?= 24
-MAINTAINER= cy@FreeBSD.org
-COMMENT= Common Desktop Environment
+MASTERDIR= ${.CURDIR}/../cde-${CDE_VERSION}
-LICENSE= LGPL21
-
-BROKEN_mips64= fails to build: ./config/imake/imake: No such file or directory
-BROKEN_powerpc64= fails to build: ./config/imake/imake: No such file or directory
-BROKEN_i386= cannot bind to a temporary of type va_list
-
-BUILD_DEPENDS= ksh93:shells/ksh93 \
- bdftopcf:x11-fonts/bdftopcf \
- mkfontscale>=0:x11-fonts/mkfontscale \
- biconv:converters/iconv \
- ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:x11-fonts/fontconfig \
- ${LOCALBASE}/libdata/pkgconfig/freetype2.pc:print/freetype2
-RUN_DEPENDS= ksh93:shells/ksh93 \
- ${LOCALBASE}/bin/fc-cache:x11-fonts/fontconfig \
- ${LOCALBASE}/libdata/pkgconfig/freetype2.pc:print/freetype2 \
- xrdb:x11/xrdb \
- xset:x11/xset
-
-USES= iconv:wchar_t jpeg motif perl5 shebangfix tcl:86 xorg
-SHEBANG_LANG= pl
-SHEBANG_FILES= programs/dtinfo/tools/bin/ccdate \
- programs/dtdocbook/doc2sdl/docbook.tcl \
- programs/dtdocbook/doc2sdl/dtdocbook
-USE_LDCONFIG= ${PREFIX}/dt/lib
-USE_RC_SUBR= dtcms dtlogin
-USE_XORG= ice sm x11 xau xdmcp xext xinerama xmu xscrnsaver xt
-
-WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
-ALL_TARGET= World
-MAKE_ARGS+= PERL=${PERL} "LOCAL_LDFLAGS=${LDFLAGS}"
-MAKE_JOBS_UNSAFE=yes
-MAKE_ENV= MALLOC_CONF=junk:false
-SUB_FILES= pkg-message
-LDFLAGS+= -z muldefs #--allow-multiple-definition
-
-post-patch:
- @if [ -f /usr/include/iconv.h ]; then \
- ${REINPLACE_CMD} -e 's!^[[:space:]]*const char .ip = (const char .) .bp!char *ip = *bp!' \
- ${WRKSRC}/programs/dtmail/libDtMail/Common/Session.C \
- ${WRKSRC}/programs/dtmail/libDtMail/RFC/RFCBodyPart.C; \
- fi
-
-# From shells/ksh93
- @${REINPLACE_CMD} -e 's|SF_FLAGS|SFIO_FLAGS|g' \
- ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/include/sfio*.h \
- ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/sfio/*.c \
- ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/sfio/*.h
-
-# Speed up poudriere + qemu + native-xtools
- @${REINPLACE_CMD} \
- -e 's|CcCmd cc|CcCmd ${CC}|g' \
- -e 's|CplusplusCmd c++|CplusplusCmd ${CXX}|g' \
- -e 's|CppCmd /usr/bin/cpp|CppCmd ${CPP}|g' \
- ${WRKSRC}/config/cf/FreeBSD.cf
-
-# Needed for armv6
- @${REINPLACE_CMD} -e 's|__va_copy|va_copy|g' \
- ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/hash/*.c \
- ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/sfio/*.c \
- ${WRKSRC}/programs/dtksh/ksh93/src/lib/libast/string/*.c
-
-# Fix all hardcoded path
- @${REINPLACE_CMD} -e 's|/usr/bin/perl|${LOCALBASE}/bin/perl|g' \
- ${WRKSRC}/config/cf/Imake.tmpl \
- ${WRKSRC}/programs/dtinfo/tools/bin/ccdate
- @${REINPLACE_CMD} -e 's|/bin/ksh|${LOCALBASE}/bin/ksh93|g' \
- ${WRKSRC}/programs/dtopen/dtopen.src
- @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
- 's|/usr/dt|${LOCALBASE}/dt|g ; \
- s|/etc/dt|${LOCALBASE}/etc/dt|g'
-
- @${REINPLACE_CMD} -e 's|STAGEDIR|${STAGEDIR}|g' -e \
- 's|LOCALBASE|${LOCALBASE}|g' \
- ${WRKSRC}/admin/IntegTools/dbTools/installCDE.src \
- ${WRKSRC}/admin/IntegTools/post_install/freebsd/configRun.src \
- ${WRKSRC}/admin/IntegTools/post_install/freebsd/configShlibs.src \
- ${WRKSRC}/admin/IntegTools/post_install/freebsd/configMin.src
-
-# we need to remove a few LOCALBASE
- @${REINPLACE_CMD} -e 's|${LOCALBASE}/etc/dtinfogen|/etc/dtinfogen|g' \
- ${WRKSRC}/databases/CDE-RUN.src \
- ${WRKSRC}/config/cf/cde.tmpl
- @${REINPLACE_CMD} -e 's|${LOCALBASE}/etc/dtsr|/etc/dtsr|g' -e \
- 's|${LOCALBASE}/etc/dtinfo_start|/etc/dtinfo_start|g' \
- ${WRKSRC}/databases/CDE-RUN.src \
- ${WRKSRC}/programs/tttypes/dtinfo_start.ptype \
- ${WRKSRC}/programs/tttypes/dtinfo.ptype
- @${REINPLACE_CMD} -e 's|${LOCALBASE}||g' \
- ${WRKSRC}/programs/dtinfo/dtinfogen/infolib/etc/dtinfogen_worker.c
-
-# why redefine exit??
- @${REINPLACE_CMD} -e '/void exit/d' \
- ${WRKSRC}/lib/tt/bin/tt_type_comp/frozen.mp_types_lex.C
-# (time_t*) NULL is apparently too C-ish
- @${REINPLACE_CMD} -e 's,(time_t) *NULL,nullptr,' \
- ${WRKSRC}/programs/dtmail/libDtMail/Common/FileShare.C \
- ${WRKSRC}/programs/dtmail/libDtMail/RFC/RFCMailBox.C
-
-do-install:
- cd ${WRKSRC}/admin/IntegTools/dbTools && \
- ./installCDE -s ${WRKSRC} -destdir ${STAGEDIR}
- (cd ${STAGEDIR}${PREFIX}/dt/share/man && \
- for m in 1 1m 3 4 5 6; do \
- ${GZIP_CMD} man$$m/*.$$m; \
- done)
- ${INSTALL_DATA} ${WRKSRC}/lib/pam/libpam/pam.conf \
- ${STAGEDIR}${PREFIX}/etc/pam.d/cde.conf
-
-post-install:
- ${FIND} ${STAGEDIR}/${PREFIX}/dt -type f -exec ${SH} -c '${STRIP_CMD} {} > /dev/null 2>&1' \;
- # Only a problem on armv7 so far
- ${FIND} ${STAGEDIR}/${PREFIX}/dt -type f -name 'ecp.*' -delete
-
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"