Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2014 11:43:48 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r346316 - in head/graphics/rgbpaint: . files
Message-ID:  <201402271143.s1RBhml1018589@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Thu Feb 27 11:43:47 2014
New Revision: 346316
URL: http://svnweb.freebsd.org/changeset/ports/346316
QAT: https://qat.redports.org/buildarchive/r346316/

Log:
  - Support CC properly
  - Stage support
  
  PR:		184233

Deleted:
  head/graphics/rgbpaint/files/
Modified:
  head/graphics/rgbpaint/Makefile

Modified: head/graphics/rgbpaint/Makefile
==============================================================================
--- head/graphics/rgbpaint/Makefile	Thu Feb 27 10:54:16 2014	(r346315)
+++ head/graphics/rgbpaint/Makefile	Thu Feb 27 11:43:47 2014	(r346316)
@@ -10,6 +10,8 @@ MASTER_SITES=	SF/mtpaint/${PORTNAME}/${P
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Very basic painting program
 
+LICENSE=	GPLv2 # (or later)
+
 USES=		gettext pkgconfig
 USE_BZIP2=	yes
 USE_GNOME=	gtk20
@@ -20,13 +22,19 @@ CONFIGURE_ARGS=	--prefix=${PREFIX} --man
 DESKTOP_ENTRIES="rgbPaint" "" "" "${PORTNAME}" "" true
 
 post-patch:
-	@${REINPLACE_CMD} -e '/if \[/s|==|=|g; s|gcc -Wall|${CC}|' \
+	@${REINPLACE_CMD} '/if \[/s|==|=|g ; \
+		 /gcc/s|^|#| ; \
+		 /GTK_LIB/s| -s||' \
 		${WRKSRC}/configure
 	@${REINPLACE_CMD} 's|$$(MT_MAN_DEST)|$$(DESTDIR)&|g' \
 		${WRKSRC}/doc/Makefile
 	@${REINPLACE_CMD} 's|$$(MT_LANG_DEST)|$$(DESTDIR)&|g' \
 		${WRKSRC}/po/Makefile
-	@${REINPLACE_CMD} 's|$$(BIN_INSTALL)|$$(DESTDIR)&|g' \
+	@${REINPLACE_CMD} 's|$$(BIN_INSTALL)|$$(DESTDIR)&|g ; \
+		 /^LDFLAGS/s|)$$|) -lm -lintl|' \
 		${WRKSRC}/src/Makefile
 
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rgbpaint
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402271143.s1RBhml1018589>