Changeset View
Changeset View
Standalone View
Standalone View
devel/geany/Makefile
# Created by: Remington Lang <MrL0Lz@gmail.com> | # Created by: Remington Lang <MrL0Lz@gmail.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= geany | PORTNAME= geany | ||||
PORTVERSION= 1.33 | PORTVERSION= 1.33 | ||||
PORTREVISION= 1 | PORTREVISION= 2 | ||||
CATEGORIES= devel editors | CATEGORIES= devel editors | ||||
MASTER_SITES= http://download.geany.org/ SF | MASTER_SITES= http://download.geany.org/ SF | ||||
MAINTAINER= madpilot@FreeBSD.org | MAINTAINER= madpilot@FreeBSD.org | ||||
COMMENT= Fast and lightweight GTK+ IDE | COMMENT= Fast and lightweight GTK+ IDE | ||||
LICENSE= GPLv2+ | LICENSE= GPLv2+ | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ | FLAVORS= gtk3 gtk2 | ||||
FLAVOR?= ${FLAVORS:[1]} | |||||
gtk2_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ | |||||
libfreetype.so:print/freetype2 | libfreetype.so:print/freetype2 | ||||
gtk2_CONFLICTS_INSTALL= geany | |||||
gtk2_PKGNAMESUFFIX= -gtk2 | |||||
USES= compiler:c++11-lang desktop-file-utils gettext-tools gmake libtool \ | gtk3_CONFLICTS_INSTALL= geany-gtk2 | ||||
localbase pathfix pkgconfig tar:bzip2 | |||||
USES= compiler:c++11-lang desktop-file-utils gettext-tools gmake \ | |||||
gnome libtool localbase pathfix pkgconfig tar:bzip2 | |||||
USE_GNOME= cairo intltool | |||||
USE_LDCONFIG= yes | |||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
INSTALLS_ICONS= yes | INSTALLS_ICONS= yes | ||||
USE_GNOME= cairo gtk20 intltool | |||||
USE_LDCONFIG= yes | |||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
OPTIONS_DEFINE= VTE NLS DOCS | OPTIONS_DEFINE= VTE NLS DOCS | ||||
OPTIONS_DEFAULT= VTE | OPTIONS_DEFAULT= VTE | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
NLS_USES= gettext-runtime | NLS_USES= gettext-runtime | ||||
NLS_CONFIGURE_ENABLE= nls | NLS_CONFIGURE_ENABLE= nls | ||||
VTE_DESC= Embedded virtual terminal | VTE_DESC= Embedded virtual terminal | ||||
VTE_CONFIGURE_ENABLE= vte | VTE_CONFIGURE_ENABLE= vte | ||||
VTE_USE= GNOME=vte | VTE_USE= GNOME=vte | ||||
.if ${FLAVOR} == gtk2 | |||||
USE_GNOME+= gtk20 | |||||
CONFIGURE_ARGS+= --disable-gtk3 | |||||
PLIST_SUB+= GTK2="" GTK3="@comment " | |||||
.elif ${FLAVOR} == gtk3 | |||||
USE_GNOME+= gtk30 | |||||
CONFIGURE_ARGS+= --enable-gtk3 | |||||
PLIST_SUB+= GTK2="@comment " GTK3="" | |||||
.endif | |||||
post-patch-DOCS-off: | post-patch-DOCS-off: | ||||
@${REINPLACE_CMD} -e '/^SUBDIRS/ s|doc||' ${WRKSRC}/Makefile.in | @${REINPLACE_CMD} -e '/^SUBDIRS/ s|doc||' ${WRKSRC}/Makefile.in | ||||
post-patch-NLS-off: | post-patch-NLS-off: | ||||
@${REINPLACE_CMD} -e '/^SUBDIRS/ s|po||' ${WRKSRC}/Makefile.in | @${REINPLACE_CMD} -e '/^SUBDIRS/ s|po||' ${WRKSRC}/Makefile.in | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |