Date: Sun, 3 Aug 2008 21:25:24 GMT From: Matthias Sund <m.sund@arcor.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/126226: [devel/upp]: update to new version 2008.1 Message-ID: <200808032125.m73LPOFF097857@www.freebsd.org> Resent-Message-ID: <200808032130.m73LU2C4077963@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 126226 >Category: ports >Synopsis: [devel/upp]: update to new version 2008.1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Aug 03 21:30:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Matthias Sund >Release: 7-Stable >Organization: >Environment: FreeBSD travelmate 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Aug 2 15:23:08 CEST 2008 masu@travelmate:/usr/obj/usr/src/sys/TRAVELMATE i386 >Description: - update to new version 2008.1 >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN upp_old/Makefile upp/Makefile --- upp_old/Makefile 2008-08-03 19:44:04.000000000 +0200 +++ upp/Makefile 2008-08-03 19:37:03.000000000 +0200 @@ -6,10 +6,10 @@ # PORTNAME= upp -PORTVERSION= 2007.1 -PORTREVISION= 4 +PORTVERSION= 2008.1 CATEGORIES= devel x11-toolkits MASTER_SITES= SF +DISTNAME= ${PORTNAME}-src-${PORTVERSION} MAINTAINER= m.sund@arcor.de COMMENT= Ultimate++, a BSD-licensed, cross-platform, C/C++ RAD suite @@ -24,10 +24,21 @@ .if defined(WITH_SDL) USE_SDL= sdl .endif +.if defined(WITH_GL) +USE_GL= gl +.endif +.if defined(WITH_MYSQL) +USE_MYSQL= yes +.endif +.if defined(WITH_PGSQL) +USE_PGSQL= yes +.endif + +ALL_TARGET= theide WRKSRC= ${WRKDIR} -INSTALL_DIRS= Common examples reference tutorial uppsrc +INSTALL_DIRS= bazaar examples reference tutorial uppsrc pre-everything:: .if !defined(WITH_SDL) @@ -35,13 +46,24 @@ @${ECHO_MSG} "Define WITH_SDL to install SDL library for running SDL example." @${ECHO_MSG} "" .endif - -pre-patch: - @${REINPLACE_CMD} -e 's|CFLAGS|C_FLAGS|' ${WRKSRC}/uppsrc/ide/Makefile +.if !defined(WITH_GL) + @${ECHO_MSG} "" + @${ECHO_MSG} "Define WITH_GL to install OpenGL library for running OpenGL example." + @${ECHO_MSG} "" +.endif +.if !defined(WITH_MYSQL) + @${ECHO_MSG} "" + @${ECHO_MSG} "Define WITH_MYSQL to install MySQL database for use with U++." + @${ECHO_MSG} "" +.endif +.if !defined(WITH_PGSQL) + @${ECHO_MSG} "" + @${ECHO_MSG} "Define WITH_PQSQL to install PostreSQL database for use with U++." + @${ECHO_MSG} "" +.endif pre-build: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/uppsrc/ide/Makefile - @${REINPLACE_CMD} -e 's|-ldl|-lfreetype|g' ${WRKSRC}/uppsrc/ide/Makefile @${REINPLACE_CMD} -e 's|CINC =(.*)|$1 ${PTHREAD_CFLAGS}|' ${WRKSRC}/uppsrc/ide/Makefile post-build: @@ -51,7 +73,7 @@ @${ECHO_CMD} "DEBUG_OPTIONS = \"-O0\";" >> ${WRKSRC}/GCC.bm @${ECHO_CMD} "RELEASE_BLITZ = \"0\";" >> ${WRKSRC}/GCC.bm @${ECHO_CMD} "RELEASE_LINKMODE = \"1\";" >> ${WRKSRC}/GCC.bm - @${ECHO_CMD} "RELEASE_OPTIONS = \"-O3 -ffunction-sections\";" >> ${WRKSRC}/GCC.bm + @${ECHO_CMD} "RELEASE_OPTIONS = \"-O2 -ffunction-sections\";" >> ${WRKSRC}/GCC.bm @${ECHO_CMD} "DEBUGGER = \"gdb\";" >> ${WRKSRC}/GCC.bm @${ECHO_CMD} "PATH = \"\";" >> ${WRKSRC}/GCC.bm @${ECHO_CMD} "INCLUDE = \"${LOCALBASE}/include;${LOCALBASE}/include/freetype2;${LOCALBASE}/include/gtk-2.0;${LOCALBASE}/include/glib-2.0;${LOCALBASE}/include/cairo;${LOCALBASE}/include/pango-1.0;${LOCALBASE}/include/atk-1.0\";" >> ${WRKSRC}/GCC.bm @@ -62,7 +84,7 @@ @${ECHO_CMD} "REMOTE_MAP = \"\";" >> ${WRKSRC}/GCC.bm do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/out/ide/GCC-Gcc-Gui-Linux-Main-Shared/ide ${PREFIX}/bin/theide + @${INSTALL_PROGRAM} ${WRKSRC}/out/ide/GCC-FREEBSD-Gcc-Gui-Main-Shared/ide ${PREFIX}/bin/theide @${MKDIR} ${PREFIX}/share/upp @${INSTALL_DATA} ${WRKSRC}/GCC.bm ${PREFIX}/share/upp/GCC.bm @(cd ${WRKSRC} && for d in ${INSTALL_DIRS};do ${FIND} $$d \! -empty -type d -print|${SORT} -r>>dirs.txt;done;) diff -ruN upp_old/distinfo upp/distinfo --- upp_old/distinfo 2008-08-03 19:44:04.000000000 +0200 +++ upp/distinfo 2008-07-31 23:53:15.000000000 +0200 @@ -1,3 +1,3 @@ -MD5 (upp-2007.1.tar.gz) = 52e896525a3754bac265234e520278be -SHA256 (upp-2007.1.tar.gz) = 8f8fcf201551b12b9018d16ae07b7199a1e6124d6a03b8aa68bfe0183d5fbd96 -SIZE (upp-2007.1.tar.gz) = 6333018 +MD5 (upp-src-2008.1.tar.gz) = fd98b01aac28037060e35295c3256b26 +SHA256 (upp-src-2008.1.tar.gz) = 3c1de9a50a40817c75538b441a4e0a43708d08aff73045e256e2a1ee111407aa +SIZE (upp-src-2008.1.tar.gz) = 7718090 diff -ruN upp_old/files/patch-Makefile upp/files/patch-Makefile --- upp_old/files/patch-Makefile 2008-08-03 19:44:04.000000000 +0200 +++ upp/files/patch-Makefile 1970-01-01 01:00:00.000000000 +0100 @@ -1,11 +0,0 @@ ---- Makefile.orig Mon Apr 16 21:17:27 2007 -+++ Makefile Mon Apr 16 21:18:26 2007 -@@ -25,7 +25,7 @@ - install -D uppsrc/ide/GCC.bm $(DESTDIR)/usr/share/upp - - .PHONY: all --all: theide install -+all: theide - - .PHONY: clean - clean: diff -ruN upp_old/files/patch-uppsrc-Core-Core.h upp/files/patch-uppsrc-Core-Core.h --- upp_old/files/patch-uppsrc-Core-Core.h 2008-08-03 19:44:04.000000000 +0200 +++ upp/files/patch-uppsrc-Core-Core.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ ---- uppsrc/Core/Core.h.orig Thu Jul 19 19:57:53 2007 -+++ uppsrc/Core/Core.h Thu Jul 19 19:59:16 2007 -@@ -300,8 +300,16 @@ - #include <string> - - #ifdef PLATFORM_POSIX -+#ifdef COMPILER_GCC -+#if __GNUC__ > 3 -+#include <ext/atomicity.h> -+#else -+#include <bits/atomicity.h> -+#endif -+#else - #include <bits/atomicity.h> - #endif -+#endif - - // fix MSC8 beta problem.... - #ifdef COMPILER_MSC diff -ruN upp_old/files/patch-uppsrc-ide-Makefile upp/files/patch-uppsrc-ide-Makefile --- upp_old/files/patch-uppsrc-ide-Makefile 2008-08-03 19:44:04.000000000 +0200 +++ upp/files/patch-uppsrc-ide-Makefile 1970-01-01 01:00:00.000000000 +0100 @@ -1,20 +0,0 @@ ---- uppsrc/ide/Makefile.orig Mon Apr 16 19:28:22 2007 -+++ uppsrc/ide/Makefile Mon Apr 16 19:36:46 2007 -@@ -1,12 +1,11 @@ - UPPDIR1 = uppsrc/ - - UPPOUT = out/ --CINC = -I$(UPPDIR1) -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 --Macro = -DflagGUI -DflagGCC -DflagSHARED -DflagLINUX --CC = c++ -c -O3 -ffunction-sections --C_FLAGS = $(CC) -x c --CPPFLAGS = $(CC) -x c++ --LIBPATH = -L"/usr/X11R6/lib" -+CINC = -I$(UPPDIR1) -I$(LOCALBASE)/include -I$(LOCALBASE)/include/freetype2 -I$(LOCALBASE)/include/gtk-2.0 -I$(LOCALBASE)/include/glib-2.0 -I$(LOCALBASE)/include/cairo -I$(LOCALBASE)/include/pango-1.0 -I$(LOCALBASE)/include/atk-1.0 -+Macro = -DflagGUI -DflagGCC -DflagSHARED -DflagFREEBSD -+C_FLAGS = $(CC) -x c -c $(CFLAGS) -+CPPFLAGS = $(CC) -x c++ -c $(CXXFLAGS) -+LIBPATH = -L$(LOCALBASE)/lib - AR = ar -sr - OutDir_ide = $(UPPOUT)ide/GCC-Gcc-Gui-Linux-Main-Shared/ - Macro_ide = $(Macro) -DflagMAIN >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808032125.m73LPOFF097857>