aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2015-02-23 23:35:30 +0800
committernivit <nivit@FreeBSD.org>2015-02-23 23:35:30 +0800
commit2955a554ad4d436f9f8aa18490589b2f717d40e9 (patch)
treef361f27105a99ed9eb6b46df859f2ae795b2969a /graphics
parent8e72d0d7303bb517e2c6e919d99b5b5f043d00bb (diff)
downloadfreebsd-ports-gnome-2955a554ad4d436f9f8aa18490589b2f717d40e9.tar.gz
freebsd-ports-gnome-2955a554ad4d436f9f8aa18490589b2f717d40e9.tar.zst
freebsd-ports-gnome-2955a554ad4d436f9f8aa18490589b2f717d40e9.zip
- Fix build with GCC 4.9 [1]
- Add option DOCS - Bump PORTREVISION (change pkg-plist) - Add files/patch-src_fbuild_Makefile.in and files/patch-src_makefmt_Makefile.in to fix build with GCC 4.9 PR: 197896 [1] Submitted by: gerald
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gle-graphics/Makefile9
-rw-r--r--graphics/gle-graphics/files/patch-Makefile.in14
-rw-r--r--graphics/gle-graphics/files/patch-src_fbuild_Makefile.in11
-rw-r--r--graphics/gle-graphics/files/patch-src_makefmt_Makefile.in11
-rw-r--r--graphics/gle-graphics/pkg-plist2
5 files changed, 42 insertions, 5 deletions
diff --git a/graphics/gle-graphics/Makefile b/graphics/gle-graphics/Makefile
index ea224cffc2ed..a058cb724423 100644
--- a/graphics/gle-graphics/Makefile
+++ b/graphics/gle-graphics/Makefile
@@ -3,7 +3,7 @@
PORTNAME= gle-graphics
DISTVERSION= 4.2.4cf
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= graphics print
MASTER_SITES= SF/glx/gle4%20%28Current%20Active%20Version%29/${DISTVERSION:C,.$,,1}
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
@@ -24,6 +24,11 @@ BITMAP_IMAGES_LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
CONFIGURE_ARGS= --with-extrafonts=yes
+ALL_TARGET= all
+
+DOCS_ALL_TARGET= doc
+DOCS_USE= tex=latex:build tex=dvipsk:build
+
GNU_CONFIGURE= yes
LATEX_GS_DESC= Use LaTeX & GhostScript
@@ -31,7 +36,7 @@ LATEX_GS_USE= tex=latex ghostscript=run
MAKE_JOBS_UNSAFE=yes
-OPTIONS_DEFINE= BITMAP_IMAGES LATEX_GS X11
+OPTIONS_DEFINE= DOCS BITMAP_IMAGES LATEX_GS X11
OPTIONS_DEFAULT= BITMAP_IMAGES LATEX_GS X11
PLIST_SUB+= PORTVERSION=${PORTVERSION}
diff --git a/graphics/gle-graphics/files/patch-Makefile.in b/graphics/gle-graphics/files/patch-Makefile.in
index 9837c685f80e..7ab1b244b5d1 100644
--- a/graphics/gle-graphics/files/patch-Makefile.in
+++ b/graphics/gle-graphics/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- ./Makefile.in.orig 2014-07-28 01:58:20.000000000 +0200
-+++ ./Makefile.in 2014-07-28 01:58:44.000000000 +0200
-@@ -101,7 +101,7 @@
+--- Makefile.in.orig 2015-02-23 13:12:35 UTC
++++ Makefile.in
+@@ -101,7 +101,7 @@ INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
MKDIR_P=@MKDIR_P@
@@ -9,3 +9,11 @@
MANDIR=@mandir@
GLE_VERSION=@GLE_VERSION@
+@@ -514,7 +514,6 @@ doc:
+ $(MAKE) -C gle-refman -f Makefile.gcc pdf
+ cp gle-refman/gle-manual.pdf build/doc/
+ cp README.txt build/doc/
+- cp LICENSE.txt build/doc/
+
+ autopackage:
+ (export APBUILD_STATIC_LIBGCC=1; export APBUILD_STATIC="tiff png12 png jpeg z"; makepackage platform/autopackage/gle4.apspec)
diff --git a/graphics/gle-graphics/files/patch-src_fbuild_Makefile.in b/graphics/gle-graphics/files/patch-src_fbuild_Makefile.in
new file mode 100644
index 000000000000..0fa934b339e5
--- /dev/null
+++ b/graphics/gle-graphics/files/patch-src_fbuild_Makefile.in
@@ -0,0 +1,11 @@
+--- src/fbuild/Makefile.in.orig 2015-02-23 12:40:36 UTC
++++ src/fbuild/Makefile.in
+@@ -64,7 +64,7 @@ $(OBJECTS): %.o: %.cpp $(INCLUDES)
+ $(CXX) $(CPPFLAGS) -c $< -o $@
+
+ $(PROJECT_BINDIR)/bin/$(PROGRAM)$(EXE_SUFF): $(OBJECTS) $(EXTRA_OBJS) $(INCLUDES) $(PROGRAM).cpp
+- $(CXX) $(CPPFLAGS) $(PROGRAM).cpp $(OBJECTS) $(EXTRA_OBJS) -o $(PROJECT_BINDIR)/bin/$(PROGRAM)$(EXE_SUFF)
++ $(CXX) $(CPPFLAGS) $(LDFLAGS) $(PROGRAM).cpp $(OBJECTS) $(EXTRA_OBJS) -o $(PROJECT_BINDIR)/bin/$(PROGRAM)$(EXE_SUFF)
+
+ clean:
+ -$(RM) $(OBJECTS) $(PROJECT_BINDIR)/bin/$(PROGRAM)$(EXE_SUFF) $(PROGRAM).$(OBJ_SUFF)
diff --git a/graphics/gle-graphics/files/patch-src_makefmt_Makefile.in b/graphics/gle-graphics/files/patch-src_makefmt_Makefile.in
new file mode 100644
index 000000000000..8b0d113a9960
--- /dev/null
+++ b/graphics/gle-graphics/files/patch-src_makefmt_Makefile.in
@@ -0,0 +1,11 @@
+--- src/makefmt/Makefile.in.orig 2015-02-23 12:40:36 UTC
++++ src/makefmt/Makefile.in
+@@ -60,7 +60,7 @@ $(OBJECTS): %.o: %.cpp $(INCLUDES)
+ $(CXX) $(CPPFLAGS) -c $< -o $@
+
+ $(PROJECT_BINDIR)/bin/$(PROGRAM)$(EXE_SUFF): $(OBJECTS) $(EXTRA_OBJS) $(INCLUDES) $(PROGRAM).cpp
+- $(CXX) $(CPPFLAGS) $(PROGRAM).cpp $(OBJECTS) $(EXTRA_OBJS) -o $(PROJECT_BINDIR)/bin/$(PROGRAM)$(EXE_SUFF)
++ $(CXX) $(CPPFLAGS) $(LDFLAGS) $(PROGRAM).cpp $(OBJECTS) $(EXTRA_OBJS) -o $(PROJECT_BINDIR)/bin/$(PROGRAM)$(EXE_SUFF)
+
+ clean:
+ -$(RM) $(OBJECTS) $(PROJECT_BINDIR)/bin/$(PROGRAM)$(EXE_SUFF) $(PROGRAM).$(OBJ_SUFF)
diff --git a/graphics/gle-graphics/pkg-plist b/graphics/gle-graphics/pkg-plist
index ee6ca6433346..a55f6eaefe91 100644
--- a/graphics/gle-graphics/pkg-plist
+++ b/graphics/gle-graphics/pkg-plist
@@ -5,6 +5,8 @@
lib/libgle-graphics-4.2.4c.so
libdata/pkgconfig/gle-graphics.pc
man/man1/gle.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/README.txt
+%%PORTDOCS%%%%DOCSDIR%%/gle-manual.pdf
%%DATADIR%%/4.2.4c/font/arial8.fmt
%%DATADIR%%/4.2.4c/font/arialbd8.fmt
%%DATADIR%%/4.2.4c/font/arialbi8.fmt