mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
e59c88cece
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from GCC 5.4 to GCC 6.4 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang, c++14-lang, c++0x, c11, or gcc-c++11-lib. PR: 219275
75 lines
2.2 KiB
Makefile
75 lines
2.2 KiB
Makefile
# Created by: Masanori OZAWA <ozawa@ongs.co.jp>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xdtp
|
|
PORTVERSION= 1.5.0
|
|
PORTREVISION= 6
|
|
CATEGORIES= japanese
|
|
MASTER_SITES= http://www.ongs.co.jp/software/xdtp/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= XML document transfer program
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= compiler:c++11-lang pkgconfig tar:tgz
|
|
USE_CXXSTD= c++11
|
|
USE_GNOME= glibmm libxml2 libxslt
|
|
HAS_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
OPTIONS_DEFINE= DEBUG DOCS GDK INCLUDE
|
|
OPTIONS_DEFAULT= GDK INCLUDE
|
|
OPTIONS_SUB= yes
|
|
|
|
DEBUG_MAKE_ARGS= DEBUG="yes"
|
|
GDK_DESC= Build with Gdk-Pixbuf
|
|
GDK_USE= gnome=gdkpixbuf2
|
|
GDK_CONFIGURE_ENV_OFF= WITHOUT_GDK="yes"
|
|
GDK_MAKE_ARGS_OFF= WITHOUT_GDK="yes"
|
|
INCLUDE_DESC= Install with XDTP include files
|
|
INCLUDE_MAKE_ARGS_OFF= WITHOUT_INCLUDE="yes"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|-o .* \(-m\)|\1| ; \
|
|
s|\([[:blank:]]\)\($${XDTPDOCUMENT}\)|\1$${DESTDIR}\2|' \
|
|
${WRKSRC}/banbun/Makefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|-o .* \(-m\)|\1| ; \
|
|
s|\([[:blank:]]\)\($${PREFIX}\)|\1$${DESTDIR}\2|' \
|
|
${WRKSRC}/bin/Makefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|-o .* \(-m\)|\1| ; \
|
|
s|\([[:blank:]]\)\($${XDTPSHARE}\)|\1$${DESTDIR}\2|' \
|
|
${WRKSRC}/misc/emacs/Makefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|-o .* \(-m\)|\1| ; \
|
|
s|\([[:blank:]]\)\($${PKGCONFDIR}\)|\1$${DESTDIR}\2|' \
|
|
${WRKSRC}/pkgconfig/Makefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|-o .* \(-m\)|\1| ; \
|
|
s|\([[:blank:]]\)\($${PREFIX}\)|\1$${DESTDIR}\2| ; \
|
|
s|\([[:blank:]]\)\($${XDTPINCLUDE}\)|\1$${DESTDIR}\2| ; \
|
|
s|\([[:blank:]]\)\($${XDTPSHARE}\)|\1$${DESTDIR}\2| ; \
|
|
/$${LN}/s|^|#|' \
|
|
${WRKSRC}/src/Makefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|-o .* \(-m\)|\1| ; \
|
|
s|\([[:blank:]]\)\($${PREFIX}\)|\1$${DESTDIR}\2| ; \
|
|
s|\([[:blank:]]\)\($${XDTPSHARE}\)|\1$${DESTDIR}\2|' \
|
|
${WRKSRC}/xsl/Makefile
|
|
# Unbreak parallel builds (-jX) by calling make(1) correctly
|
|
@${REINPLACE_CMD} -E 's/cd(.+)(;| &&) (\$$\{MAKE})/\3 -C\1/' \
|
|
${WRKSRC}/Makefile ${WRKSRC}/bin/Makefile \
|
|
${WRKSRC}/java/Makefile ${WRKSRC}/misc/Makefile
|
|
|
|
post-install:
|
|
@${LN} -sf libxdtp.so.5 ${STAGEDIR}${PREFIX}/lib/libxdtp.so
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libxdtp.so.5
|
|
|
|
.include <bsd.port.mk>
|