ports/184874: graphics/gtimelapse: Fix build with clang
KATO Tsuguru
tkato432 at yahoo.com
Mon Dec 16 18:10:21 UTC 2013
>Number: 184874
>Category: ports
>Synopsis: graphics/gtimelapse: Fix build with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 16 18:10:20 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Add DESKTOP_ENTRIES
New file:
files/patch-src__gtimelapse.cpp
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/graphics/gtimelapse/Makefile graphics/gtimelapse/Makefile
--- /usr/ports/graphics/gtimelapse/Makefile 2013-11-06 22:02:09.000000000 +0900
+++ graphics/gtimelapse/Makefile 2013-12-17 00:00:00.000000000 +0900
@@ -8,19 +8,23 @@
MASTER_SITES= SF/${PORTNAME}/Relase # yes, this is not a typo (here)
MAINTAINER= ports at FreeBSD.org
-COMMENT= An application for capturing images to generate timelapse videos
+COMMENT= Application for capturing images to generate timelapse videos
LICENSE= GPLv2
-LIB_DEPENDS= gphoto2.2:${PORTSDIR}/graphics/libgphoto2
+LIB_DEPENDS= libgphoto2.so:${PORTSDIR}/graphics/libgphoto2
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-wx-config=${WX_CONFIG}
USES= pkgconfig
USE_WX= 2.8+
-WRKSRC= ${WRKDIR}/${PORTNAME}
+WX_CONF_ARGS= absolute
+USE_AUTOTOOLS= libtoolize aclocal automake autoconf
+LIBTOOLIZE_ARGS=--copy --force
+AUTOMAKE_ARGS= --add-missing --copy
PLIST_FILES= bin/${PORTNAME}
-NO_STAGE= yes
+DESKTOP_ENTRIES="gTimelapse" "" "" "${PORTNAME}" "Graphics;GTK;" ""
+
.include <bsd.port.mk>
diff -urN /usr/ports/graphics/gtimelapse/files/patch-src__gtimelapse.cpp graphics/gtimelapse/files/patch-src__gtimelapse.cpp
--- /usr/ports/graphics/gtimelapse/files/patch-src__gtimelapse.cpp 1970-01-01 09:00:00.000000000 +0900
+++ graphics/gtimelapse/files/patch-src__gtimelapse.cpp 2013-12-17 00:00:00.000000000 +0900
@@ -0,0 +1,25 @@
+--- src/gtimelapse.cpp.orig
++++ src/gtimelapse.cpp
+@@ -155,7 +155,11 @@
+ //cout << "type: RADIO" << endl;
+ //cout << "current: " << current << endl;
+
++#ifdef __clang__
++ wxString *choices = new wxString[cnt];
++#else
+ wxString choices[cnt];
++#endif
+
+ for ( i=0; i<cnt; i++) {
+ const char *choice;
+@@ -165,6 +169,10 @@
+ choices[i] = mystring;
+ }
+
++#ifdef __clang__
++ delete [] choices;
++#endif
++
+ wxString title(label, wxConvUTF8);
+ wxString default_choice(current, wxConvUTF8);
+ wxString choice_label(uselabel, wxConvUTF8);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list