mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
9f8b4bcde3
- Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV. - Add an option helper for LIBS. - Adjust all ports that already use LIBS. Also remove references to PTHREAD_CFLAGS and PTHREAD_LIBS while here. - Some ports did not support having a LIBS environment variable and required additional patches. Somewhat simplified a linker command line looks like: ${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS} where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and LIBS can be controlled by us. If possible -L and -l flags need to be added to LIBS to make sure they appear after any -L and -l flags set by upstream. Many ports currently add -L${LOCALBASE}/lib to LDFLAGS but this may appear too early on the command line causing installed libraries to be linked in instead of freshly built ones. Additional changes: benchmarks/netio: Replace WITH_IPV6 with an IPV6 option. comms/gnokii: Replace some patches with USES=pathfix. Also remove -fPIC. graphics/gimageview: USES=libtool and install desktop file in DESKTOPDIR. graphics/visionworkbench: Remove FreeBSD 7 support. multimedia/libmovtar: New LIB_DEPENDS syntax. multimedia/opencinematools: Use standard do-build. net/siproxd: USES=libtool:keepla (port actually needs .la files for plugins) net-mgmt/nagios: Remove -fPIC. net-mgmt/nagios4: Remove -fPIC. print/cups-base: Only add -lssp_nonshared on i386 and OSVERSION < 1000036. security/p11-kit: Replace PTHREAD_LIBS in CONFIGURE_ENV with ac_cv_func_pthread_mutexattr_init=no in CONFIGURE_ARGS. This skips a test in configure that falsely detects pthread_mutexattr_init in our libc. sysutils/dar: Fix iconv detection. x11/rxvt-unicode: Remove -lstdc++ and patch configure to remove a FreeBSD hack and use $CXX as linker as on other platforms. PR: 190592 Exp-run by: antoine Approved by: portmgr (antoine)
107 lines
3.1 KiB
Makefile
107 lines
3.1 KiB
Makefile
# Created by: Satoshi TAOKA <taoka@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= jvim
|
|
PORTVERSION= 3.0.j2.1b
|
|
PORTREVISION= 1
|
|
CATEGORIES= japanese editors
|
|
MASTER_SITES= ftp://ftp.vim.org/pub/vim/unix/ \
|
|
http://hp.vector.co.jp/authors/VA003457/vim/vim3/2.1b/
|
|
DISTFILES= vim-3.0.tar.gz jvim.2.1b.tar.gz
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= Japanized Vim-3.0
|
|
|
|
EXTRA_PATCHES= ${WRKDIR}/${PORTNAME}.diff
|
|
WRKSRC= ${WRKDIR}/vim
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
INSTALL_WRKSRC= ${WRKSRC}/src
|
|
MAKEFILE= makjunix.mak
|
|
ALL_TARGET= # empty
|
|
PLIST_SUB= VERSION=${PORTVERSION}
|
|
MAKE_ARGS= FEPOPT='${FEPOPT}' \
|
|
FEPLIBS="${FEPLIBS}" \
|
|
FEPOBJS="${FEPOBJS}" \
|
|
LIBS="${LIBS}"
|
|
|
|
OPTIONS_DEFINE= X11
|
|
OPTIONS_DEFAULT=X11 FREEWNN_CANNA
|
|
OPTIONS_RADIO= FEP
|
|
OPTIONS_RADIO_FEP= FREEWNN_CANNA DIRECT_CANNA WNN6 WNN7
|
|
FEP_DESC= Japanese FrontEnd Processor
|
|
DIRECT_CANNA_DESC= Canna support (direct)
|
|
DIRECT_CANNA_LIB_DEPENDS= libcanna.so:${PORTSDIR}/japanese/canna-lib
|
|
FREEWNN_CANNA_DESC= Canna and FreeWnn support (via ONEW library)
|
|
FREEWNN_CANNA_LIB_DEPENDS= libjd.so:${PORTSDIR}/japanese/FreeWnn-lib \
|
|
libcanna.so:${PORTSDIR}/japanese/canna-lib
|
|
FREEWNN_CANNA_BUILD_DEPENDS= ${LOCALBASE}/lib/libonew-canna+freewnn.a:${PORTSDIR}/japanese/onew
|
|
WNN6_DESC= Wnn6 support
|
|
WNN6_LIB_DEPENDS= libjd.so:${PORTSDIR}/japanese/FreeWnn-lib
|
|
WNN6_BUILD_DEPENDS= ${LOCALBASE}/lib/libonew-wnn6.a:${PORTSDIR}/japanese/onew
|
|
WNN7_DESC= Wnn7 support
|
|
WNN7_LIB_DEPENDS= libjd.so:${PORTSDIR}/japanese/FreeWnn-lib
|
|
WNN7_BUILD_DEPENDS= ${LOCALBASE}/lib/libonew-wnn7.a:${PORTSDIR}/japanese/onew
|
|
|
|
PORTDOCS= cygwin.txt differen.doc fepctrl.doc readme.doc \
|
|
termcap.dos uganda.jp vim-jp.htm vim32.ini tutor.j
|
|
|
|
CPPFLAGS+= -DBSD_UNIX -DUSE_LOCALE
|
|
LIBS+= -ltermlib -L${LOCALBASE}/lib
|
|
|
|
X11_USE= XORG=x11
|
|
X11_CPPFLAGS= -DUSE_X11 -I${LOCALBASE}/include
|
|
X11_LIBS= -lX11 -L${LOCALBASE}/lib
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDIRECT_CANNA} || \
|
|
${PORT_OPTIONS:MFREEWNN_CANNA} || \
|
|
${PORT_OPTIONS:MWNN6} || \
|
|
${PORT_OPTIONS:MWNN7}
|
|
FEPOPT+= -DJP_DEF=\"EEE\" -DFEPCTRL
|
|
.endif
|
|
|
|
# Direct connection to Canna
|
|
.if ${PORT_OPTIONS:MDIRECT_CANNA}
|
|
FEPOPT+= -DCANNA
|
|
FEPLIBS= -lcanna -L${LOCALBASE}/lib
|
|
FEPOBJS= fepcanna.o
|
|
JVIM3RC= "set fepctrl"
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MFREEWNN_CANNA} || \
|
|
${PORT_OPTIONS:MWNN6} || \
|
|
${PORT_OPTIONS:MWNN7} || \
|
|
${PORT_OPTIONS:MCANNA}
|
|
FEPOPT+= -DONEW
|
|
FEPOBJS= feponew.o
|
|
JVIM3RC= "set fepctrl onewredraw"
|
|
.endif
|
|
|
|
# Connection by using ONEW library
|
|
.if ${PORT_OPTIONS:MFREEWNN_CANNA}
|
|
FEPLIBS+= -lonew-canna+freewnn -lcanna -ljd -lcrypt
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWNN6}
|
|
FEPLIBS+= -lonew-wnn6 -ljd -lcrypt
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWNN7}
|
|
FEPLIBS+= -lonew-wnn7 -ljd -lcrypt
|
|
.endif
|
|
|
|
post-build:
|
|
${CP} ${WRKSRC}/doc.j/tutor/tutor.j ${WRKSRC}/doc.j
|
|
|
|
post-install:
|
|
${LN} -sf jvim3 ${STAGEDIR}${PREFIX}/bin/jvim
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/grep/grep \
|
|
${STAGEDIR}${PREFIX}/bin/jgrep
|
|
${ECHO_CMD} "${JVIM3RC}" > ${WRKSRC}/jvim3rc.dist
|
|
${INSTALL_DATA} ${WRKSRC}/jvim3rc.dist ${STAGEDIR}${PREFIX}/etc/
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/doc.j && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|