diff options
author | gahr <gahr@FreeBSD.org> | 2013-10-15 16:24:14 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2013-10-15 16:24:14 +0800 |
commit | b4e45589ee3b830ad5826dab33e17842510f97e3 (patch) | |
tree | 88531190618667cc18a4664c940d52fbe46401c4 /x11-toolkits | |
parent | 5bb9bc95a594ba75271d2f34726d772e4541f099 (diff) | |
download | freebsd-ports-gnome-b4e45589ee3b830ad5826dab33e17842510f97e3.tar.gz freebsd-ports-gnome-b4e45589ee3b830ad5826dab33e17842510f97e3.tar.zst freebsd-ports-gnome-b4e45589ee3b830ad5826dab33e17842510f97e3.zip |
- Fix build in C++11 mode [1]
- Convert to new LIB_DEPENDS format
- Convert to OPTIONSng (DOCS)
- STAGE-clean
PR: 182949 [1]
Submitted by: dt71@gmx.com [1]
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/fltk/Makefile | 12 | ||||
-rw-r--r-- | x11-toolkits/fltk/files/patch-fluid_Fl_Type.h | 16 | ||||
-rw-r--r-- | x11-toolkits/fltk/pkg-plist | 3 |
3 files changed, 25 insertions, 6 deletions
diff --git a/x11-toolkits/fltk/Makefile b/x11-toolkits/fltk/Makefile index b38fd3e89eb7..f568a86b11e3 100644 --- a/x11-toolkits/fltk/Makefile +++ b/x11-toolkits/fltk/Makefile @@ -12,8 +12,10 @@ COMMENT= Cross-platform C++ graphical user interface toolkit LICENSE= LGPL20 -LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \ - jpeg.11:${PORTSDIR}/graphics/jpeg +OPTIONS_DEFINE= DOCS + +LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \ + libjpeg.so:${PORTSDIR}/graphics/jpeg USE_LDCONFIG= yes USE_XORG= xft @@ -31,16 +33,14 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} PORTDOCS= * -MAN1= fltk-config.1 fluid.1 -MAN3= fltk.3 +.include <bsd.port.options.mk> -NO_STAGE= yes post-patch: prefix="${PREFIX}" ; plength=$$(($${#prefix}+10)) ; \ ${REINPLACE_CMD} -e "\|/etc/fltk|{s||${PREFIX}&|;s|10|$${plength}|;}" \ ${WRKSRC}/src/Fl_Preferences.cxx -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} post-install: cd ${WRKSRC}/documentation && ${MAKE} docinstall cd ${WRKSRC}/test && ${MAKE} install diff --git a/x11-toolkits/fltk/files/patch-fluid_Fl_Type.h b/x11-toolkits/fltk/files/patch-fluid_Fl_Type.h new file mode 100644 index 000000000000..d258b711bf9e --- /dev/null +++ b/x11-toolkits/fltk/files/patch-fluid_Fl_Type.h @@ -0,0 +1,16 @@ +--- fluid/Fl_Type.h.orig 2013-10-15 09:58:05.000000000 +0200 ++++ fluid/Fl_Type.h 2013-10-15 10:01:26.000000000 +0200 +@@ -33,10 +33,12 @@ + + void set_modflag(int mf); + ++Fl_Widget *make_type_browser(int,int,int,int,const char *l=0); ++ + class Fl_Type { + + friend class Widget_Browser; +- friend Fl_Widget *make_type_browser(int,int,int,int,const char *l=0); ++ friend Fl_Widget *make_type_browser(int,int,int,int,const char *l); + friend class Fl_Window_Type; + virtual void setlabel(const char *); // virtual part of label(char*) + diff --git a/x11-toolkits/fltk/pkg-plist b/x11-toolkits/fltk/pkg-plist index 88266fa9dd9f..5f5300dc3374 100644 --- a/x11-toolkits/fltk/pkg-plist +++ b/x11-toolkits/fltk/pkg-plist @@ -158,4 +158,7 @@ lib/libfltk_images.a lib/libfltk_images.so lib/libfltk_images.so.1 lib/libfltk_images.so.1.3 +man/man1/fltk-config.1.gz +man/man1/fluid.1.gz +man/man3/fltk.3.gz @dirrm include/FL |