Bug 184233 - graphics/rgbpaint: Support CC properly
Summary: graphics/rgbpaint: Support CC properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-24 18:10 UTC by tkato432
Modified: 2014-02-27 11:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.88 KB, patch)
2013-11-24 18:10 UTC, tkato432
no flags Details | Diff
graphics_rgbpaint.diff (1004 bytes, patch)
2013-12-28 18:00 UTC, tkato432
no flags Details | Diff
graphics_rgbpaint.diff (1.60 KB, patch)
2014-02-06 09:58 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-11-24 18:10:04 UTC
- Support CC properly
Comment 1 tkato432 2013-12-28 18:00:00 UTC
Remake of the patch against current tree.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2014-01-23 15:45:43 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 3 tkato432 2014-02-06 09:58:16 UTC
Remake of the patch against current tree.
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2014-02-27 11:43:50 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2014-02-27 11:43:54 UTC
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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"