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