Lines 2-48
Link Here
|
2 |
# $FreeBSD: head/editors/zoinks/Makefile 360256 2014-07-02 20:22:55Z antoine $ |
2 |
# $FreeBSD: head/editors/zoinks/Makefile 360256 2014-07-02 20:22:55Z antoine $ |
3 |
|
3 |
|
4 |
PORTNAME= zoinks |
4 |
PORTNAME= zoinks |
5 |
PORTVERSION= 0.3.7 |
5 |
PORTVERSION= 0.4.1 |
6 |
PORTREVISION= 4 |
|
|
7 |
CATEGORIES= editors |
6 |
CATEGORIES= editors |
8 |
MASTER_SITES= http://zoinks.mikelockwood.com/download/ |
7 |
MASTER_SITES= http://zoinks.mikelockwood.com/download/ |
9 |
|
8 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT= X11 programmer's editor and development environment |
10 |
COMMENT= X11 programmer's editor and development environment |
12 |
|
11 |
|
13 |
.if defined(WITH_IMLIB) |
12 |
LICENSE= GPLv2 # (or later) |
14 |
USE_GNOME= imlib |
|
|
15 |
CONFIGURE_ARGS+= --enable-imlib |
16 |
.else |
17 |
CONFIGURE_ARGS+= --disable-imlib |
18 |
.endif |
19 |
|
13 |
|
20 |
USE_XORG= xpm |
14 |
USE_XORG= xpm |
21 |
GNU_CONFIGURE= yes |
15 |
GNU_CONFIGURE= yes |
22 |
|
16 |
|
23 |
NO_STAGE= yes |
17 |
CPPFLAGS+= -I${LOCALBASE}/include |
|
|
18 |
LDFLAGS+= -L${LOCALBASE}/lib |
24 |
|
19 |
|
25 |
OPTIONS_DEFINE= NLS |
20 |
OPTIONS_DEFINE= IMLIB NLS |
|
|
21 |
OPTIONS_SUB= yes |
26 |
|
22 |
|
27 |
.include <bsd.port.options.mk> |
23 |
IMLIB_USE= GNOME=imlib |
28 |
|
24 |
IMLIB_CONFIGURE_ENABLE= imlib |
29 |
.if ${PORT_OPTIONS:MNLS} |
25 |
NLS_USE= gettext |
30 |
USES+= gettext |
26 |
NLS_CONFIGURE_ENABLE= nls |
31 |
PLIST_SUB+= NLS="" |
|
|
32 |
.else |
33 |
CONFIGURE_ARGS+=--disable-nls |
34 |
PLIST_SUB+= NLS="@comment " |
35 |
.endif |
36 |
|
37 |
pre-everything:: |
38 |
@${ECHO_MSG} "" |
39 |
@${ECHO_MSG} "Zoinks can be built with optional support for calculating image sizes" |
40 |
@${ECHO_MSG} "and image thumbnail creation for HTML files." |
41 |
@${ECHO_MSG} "These features require the Gnome imlib library." |
42 |
@${ECHO_MSG} "Use WITH_IMLIB=yes to enable these features." |
43 |
@${ECHO_MSG} "" |
44 |
|
27 |
|
45 |
post-patch: |
28 |
post-patch: |
|
|
29 |
@${REINPLACE_CMD} -e \ |
30 |
's|^MY_CXXFLAGS|#&|' ${WRKSRC}/configure |
46 |
@${FIND} ${WRKSRC} -name *.xpm | ${XARGS} ${REINPLACE_CMD} -e \ |
31 |
@${FIND} ${WRKSRC} -name *.xpm | ${XARGS} ${REINPLACE_CMD} -e \ |
47 |
's|^"|(char *)"|g' |
32 |
's|^"|(char *)"|g' |
48 |
|
33 |
|