blob: 10414460844fcf82bdb93b585cac24a08539f929 (
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
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= stfl
PORTVERSION= 0.22
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.clifford.at/stfl/
MAINTAINER= arved@FreeBSD.org
COMMENT= Structured Terminal Forms Language/Library
LICENSE= GPLv3
USES= gmake iconv:wchar_t ncurses
USE_LDCONFIG= yes
PLIST_FILES= include/stfl.h lib/libstfl.a lib/libstfl.so lib/libstfl.so.0 \
lib/libstfl.so.0.22 libdata/pkgconfig/stfl.pc
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
MAKE_ENV= LDLIBS="${LDFLAGS}"
post-patch:
@${REINPLACE_CMD} -e 's|-Os||;/gcc/d;/-MM/s|-I.|$${CFLAGS}|; \
/pkgconfig/s|$$(libdir)|libdata|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/Libs.private/s|$$| ${ICONV_LIB}|' \
${WRKSRC}/stfl.pc.in
@${REINPLACE_CMD} -e 's|ncursesw/|${NCURSESINC}/|'\
${WRKSRC}/stfl_internals.h
@${ECHO_CMD} 'prefix = ${PREFIX}' > ${WRKSRC}/Makefile.cfg
@${ECHO_CMD} 'libdir = lib' >> ${WRKSRC}/Makefile.cfg
pre-build:
@cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV}\
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} Makefile.deps
post-install:
${LN} -s libstfl.so.0.22 ${STAGEDIR}${PREFIX}/lib/libstfl.so.0
.include <bsd.port.mk>
|