aboutsummaryrefslogtreecommitdiffstats
path: root/editors/zoinks/Makefile
blob: 30d4994036bb776993bd8f2dd5e57d0544c1c79b (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
# Created by: Mike Lockwood <mike@mikelockwood.com>
# $FreeBSD$

PORTNAME=   zoinks
PORTVERSION=    0.4.1
PORTREVISION=   3
CATEGORIES= editors
MASTER_SITES=   http://zoinks.mikelockwood.com/download/

MAINTAINER= ports@FreeBSD.org
COMMENT=    X11 programmer's editor and development environment

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       compiler
USE_XORG=   x11 xext xpm
GNU_CONFIGURE=  yes

CPPFLAGS+=  -I${LOCALBASE}/include
CXXFLAGS+=  ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE=     NLS
OPTIONS_SUB=        yes

NLS_USES=       gettext
NLS_CONFIGURE_ENABLE=   nls

post-patch:
    @${REINPLACE_CMD} -e \
        's|^MY_CXXFLAGS|#&|' ${WRKSRC}/configure
    @${FIND} ${WRKSRC} -name *.xpm | ${XARGS} ${REINPLACE_CMD} -e \
        's|^"|(char *)"|g'

.include <bsd.port.mk>