090059a210
The affected ports are the ones with gettext as a run-dependency according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT in Makefile (29 of them). PR: ports/124340 Submitted by: edwin@ Approved by: portmgr (pav)
74 lines
1.6 KiB
Makefile
74 lines
1.6 KiB
Makefile
# New ports collection Makefile for: geany
|
|
# Date Created: 15 Jan 06
|
|
# Whom: Remington Lang <MrL0Lz@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= geany
|
|
PORTVERSION= 0.14
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ar@null.lv
|
|
COMMENT= A fast and lightweight GTK+ IDE
|
|
|
|
GNU_CONFIGURE= yes
|
|
INSTALLS_ICONS= yes
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_GNOME= gtk20
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -lgnuregex"
|
|
|
|
OPTIONS= VTE "Enable Virtual Terminal Emulation support" on \
|
|
NLS "Enable Native Language support" on
|
|
|
|
MAN1= geany.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} > 502010
|
|
GNU_REGEX_H= gnu/regex.h
|
|
.else
|
|
GNU_REGEX_H= gnuregex.h
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_VTE)
|
|
USE_GNOME+= vte
|
|
CONFIGURE_ARGS+=--enable-vte
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-vte
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|gcc|${CC} ${CFLAGS}|' ${WRKSRC}/scintilla/Makefile.in
|
|
.for file in tagmanager/lregex.c src/encodings.c
|
|
@${REINPLACE_CMD} -e 's|<regex\.h>|<${GNU_REGEX_H}>|g' ${WRKSRC}/${file}
|
|
.endfor
|
|
.if defined(NOPORTDOCS)
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS/ s|doc||' ${WRKSRC}/Makefile.in
|
|
.endif
|
|
.if defined(WITHOUT_NLS)
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS/ s|po||' ${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
post-configure:
|
|
@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
|
|
${WRKSRC}/Makefile
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/geany.desktop ${PREFIX}/share/applications/
|
|
${INSTALL_MAN} ${WRKSRC}/doc/geany.1 ${MAN1PREFIX}/man/man1
|
|
|
|
.include <bsd.port.post.mk>
|