aboutsummaryrefslogtreecommitdiff
path: root/editors/fxite/Makefile
blob: 532f2ac0ff13f8aabc9637855b0da80cac18e8b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Created by: gahr
# $FreeBSD$

PORTNAME=	fxite
PORTVERSION=	0.92
PORTREVISION=	3
CATEGORIES=	editors

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	Advanced cross-platform text editor

LICENSE=	GPLv3

LIB_DEPENDS=	#

OPTIONS_SINGLE=		#FOX
OPTIONS_SINGLE_FOX=	FOX16 FOX17
FOX16_DESC=		Use FOX 1.6
FOX17_DESC=		Use FOX 1.7
OPTIONS_DEFAULT=	FOX16

USE_GITHUB=	yes
GH_ACCOUNT=	yetanothergeek
GH_TAGNAME=	FXITE-0_91
GH_COMMIT=	c2ecac3

USES=		gmake pkgconfig lua:51 desktop-file-utils
USE_AUTOTOOLS=	aclocal autoconf automake
ACLOCAL_ARGS=	--force -I m4
AUTOMAKE_ARGS=	--gnu --add-missing --copy
CXXFLAGS+=	-fPIC
LDFLAGS+=	-L${LOCALBASE}/lib -lintl
CONFIGURE_ARGS+=--with-system-lua \
		--with-lua-pkg=lua-${LUA_VER}
CONFIGURE_ENV+=	FOX_CFLAGS="${FOX_CFLAGS}" \
		FOX_LIBS="${FOX_LIBS}"

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFOX16}
LIB_DEPENDS+=	libFOX-1.6.so:${PORTSDIR}/x11-toolkits/fox16
CONFIGURE_ENV+=	RESWRAP=${LOCALBASE}/bin/reswrap
FOX_CFLAGS+=	`fox-config --cflags`
FOX_LIBS+=	`fox-config --libs`
.endif

.if ${PORT_OPTIONS:MFOX17}
LIB_DEPENDS+=	libFOX-1.7.so:${PORTSDIR}/x11-toolkits/fox17
CONFIGURE_ENV+=	RESWRAP=${LOCALBASE}/bin/fox-1.7/reswrap
FOX_CFLAGS+=	`pkgconf fox17 --cflags`
FOX_LIBS+=	`pkgconf fox17 --libs`
.endif

PLIST_FILES=	bin/fxite \
		share/pixmaps/fxite.xpm \
		share/applications/fxite.desktop

.include <bsd.port.mk>