Lines 1-8
Link Here
|
1 |
# Created by: Dima Sivachenko <dima@Chg.RU> |
1 |
# Created by: Dima Sivachenko <dima@Chg.RU> |
2 |
|
2 |
|
3 |
PORTNAME= fltk |
3 |
PORTNAME= fltk |
4 |
PORTVERSION= 1.3.5 |
4 |
PORTVERSION= 1.3.7 |
5 |
PORTREVISION= 1 |
|
|
6 |
CATEGORIES= x11-toolkits |
5 |
CATEGORIES= x11-toolkits |
7 |
MASTER_SITES= https://www.fltk.org/pub/${PORTNAME}/${PORTVERSION}/ |
6 |
MASTER_SITES= https://www.fltk.org/pub/${PORTNAME}/${PORTVERSION}/ |
8 |
DISTNAME= ${PORTNAME}-${PORTVERSION}-source |
7 |
DISTNAME= ${PORTNAME}-${PORTVERSION}-source |
Lines 16-55
LICENSE_FILE= ${WRKSRC}/COPYING
Link Here
|
16 |
LIB_DEPENDS= libpng.so:graphics/png \ |
15 |
LIB_DEPENDS= libpng.so:graphics/png \ |
17 |
libfontconfig.so:x11-fonts/fontconfig |
16 |
libfontconfig.so:x11-fonts/fontconfig |
18 |
|
17 |
|
19 |
USES= gl jpeg localbase pkgconfig tar:bz2 xorg |
18 |
USES= cmake desktop-file-utils gl jpeg localbase pkgconfig shared-mime-info tar:bz2 xorg |
20 |
USE_XORG= x11 xcursor xext xfixes xft xinerama xrender |
19 |
USE_XORG= ice sm x11 xcursor xext xfixes xft xinerama xrender |
21 |
USE_GL= gl glu |
20 |
USE_GL= gl glu |
22 |
USE_LDCONFIG= yes |
21 |
USE_LDCONFIG= yes |
23 |
GNU_CONFIGURE= yes |
|
|
24 |
CONFIGURE_ARGS= --enable-shared |
25 |
CONFIGURE_ENV= NROFF=echo |
26 |
|
22 |
|
27 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
23 |
CMAKE_ON= OPTION_BUILD_SHARED_LIBS |
28 |
|
24 |
|
29 |
PORTEXAMPLES= * |
25 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
30 |
|
|
|
31 |
OPTIONS_DEFINE= EXAMPLES |
32 |
|
33 |
post-extract: |
34 |
@${MV} ${WRKSRC}/test/help.cxx ${WRKSRC}/test/help_dialog.cxx |
35 |
@${MV} ${WRKSRC}/test/help-test.html ${WRKSRC}/test/help_dialog.html |
36 |
|
37 |
post-patch: .SILENT |
38 |
prefix="${PREFIX}" ; plength=$$(($${#prefix}+10)) ; \ |
39 |
${REINPLACE_CMD} -e "\|/etc/fltk|{s||${PREFIX}&|;s|10|$${plength}|;}" \ |
40 |
${WRKSRC}/src/Fl_Preferences.cxx |
41 |
${REINPLACE_CMD} -e 's,$$(docdir)/examples,${EXAMPLESDIR},' \ |
42 |
${WRKSRC}/test/Makefile |
43 |
${REINPLACE_CMD} -e '/^INSTALL_BIN/s,-m,${STRIP} &, ; \ |
44 |
s,^\.SILENT,#&,' ${WRKSRC}/makeinclude.in |
45 |
${REINPLACE_CMD} -E \ |
46 |
's,(.*)LDFLAGS(.*)LINKSHARED(.*),\1LINKSHARED\2LDFLAGS\3,' \ |
47 |
${WRKSRC}/fluid/Makefile |
48 |
|
49 |
post-install: |
50 |
.for x in fltk fltk_forms fltk_gl fltk_images |
51 |
${LN} -sf lib${x}.so.${PORTVERSION:R} \ |
52 |
${STAGEDIR}${PREFIX}/lib/lib${x}.so.1 |
53 |
.endfor |
54 |
|
26 |
|
55 |
.include <bsd.port.mk> |
27 |
.include <bsd.port.mk> |