diff options
Diffstat (limited to 'editors/cooledit/Makefile')
-rw-r--r-- | editors/cooledit/Makefile | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/editors/cooledit/Makefile b/editors/cooledit/Makefile index 466bad5..f63a89a 100644 --- a/editors/cooledit/Makefile +++ b/editors/cooledit/Makefile @@ -6,38 +6,41 @@ # PORTNAME= cooledit -PORTVERSION= 3.17.7 -PORTREVISION= 2 +PORTVERSION= 3.17.8 CATEGORIES= editors -MASTER_SITES= http://cooledit.sourceforge.net/ +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= apps/editors/X/cooledit MAINTAINER= ports@FreeBSD.org COMMENT= Suite of utilities, including a GUI editor -LIB_DEPENDS= vga.1:${PORTSDIR}/graphics/svgalib - -USE_GETTEXT= yes -USE_XPM= yes +USE_XLIB= yes USE_PYTHON= yes +USE_GETTEXT= yes +USE_REINPLACE= yes USE_GMAKE= yes -GNU_CONFIGURE= yes +USE_LIBTOOL_VER= 15 CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ - LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" -CONFIGURE_ARGS= --with-libs='-lcrypt -lreadline -lvga -lintl' \ - --disable-mail-author +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \ + AUTOMAKE="${TRUE}" INSTALLS_SHLIB= yes -MAN1= cooledit.1 coolicon.1 coolman.1 smalledit.1 +MAN1= cooledit.1 coolman.1 smalledit.1 -post-install: - ${INSTALL_DATA} ${WRKSRC}/pixmap/coolicon.config \ - ${PREFIX}/etc/coolicon.config.dist -.if !exists(${PREFIX}/etc/coolicon.config) - ${INSTALL_DATA} ${WRKSRC}/pixmap/coolicon.config \ - ${PREFIX}/etc/coolicon.config +CPPFLAGS= -I${LOCALBASE}/include -DHAVE_GETTEXT ${PTHREAD_CFLAGS} +LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS} + +.if defined(WITH_NEXT_LOOK) +CONFIGURE_ARGS+= --enable-NeXT-look .endif - @${LN} -sf ${PREFIX}/share/cooledit/global.py \ - ${PREFIX}/share/coolicon/global.py + +post-patch: + @${REINPLACE_CMD} -e 's|^PACKAGE_FORCE|#PACKAGE_FORGE|g ; \ + s|USE_INCLUDED_LIBINTL=yes|USE_INCLUDED_LIBINTL=no|g ; \ + s|\\$${top_builddir}/intl/libintl.a|-lintl|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|#undef HAVE_WCHAR_H||g ; \ + s|#undef HAVE_DCGETTEXT||g' ${WRKSRC}/config.h.in + @${REINPLACE_CMD} -e 's|m4 intl rxvt|m4 rxvt|g' ${WRKSRC}/Makefile.in .include <bsd.port.mk> |