Bug 179218 - graphics/kdc2tiff: Fix build with clang
Summary: graphics/kdc2tiff: Fix build with clang
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-06-02 19:10 UTC by tkato432
Modified: 2013-06-04 09:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.03 KB, patch)
2013-06-02 19:10 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-06-02 19:10:03 UTC
- Fix build with clang
- Add LICENSE
- Add MAKE_JOBS_SAFE
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-02 19:10:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-06-04 09:45:45 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-06-04 09:45:50 UTC
Author: miwi
Date: Tue Jun  4 08:45:42 2013
New Revision: 319836
URL: http://svnweb.freebsd.org/changeset/ports/319836

Log:
  - Fix build with clang
  - Add LICENSE
  - Add MAKE_JOBS_SAFE
  
  PR:		179218
  Submitted by:	ports fury

Modified:
  head/graphics/kdc2tiff/Makefile   (contents, props changed)

Modified: head/graphics/kdc2tiff/Makefile
==============================================================================
--- head/graphics/kdc2tiff/Makefile	Tue Jun  4 08:26:46 2013	(r319835)
+++ head/graphics/kdc2tiff/Makefile	Tue Jun  4 08:45:42 2013	(r319836)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	kdc2tiff
-# Date created:				Tue 04 Jul 2000
-# Whom:					will
-#
+# Created by: will
 # $FreeBSD$
-#
 
 PORTNAME=	kdc2tiff
 PORTVERSION=	0.35
@@ -14,14 +10,22 @@ MASTER_SITES=	SF
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Converts Kodak .kdc to TIFF or JPEG formats
 
-LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg \
-		tiff.4:${PORTSDIR}/graphics/tiff
+LICENSE=	GPLv2
+
+LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg \
+		tiff:${PORTSDIR}/graphics/tiff
 
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
+MAKE_JOBS_SAFE=	yes
+
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
 PLIST_FILES=	bin/kdc2jpeg bin/kdc2tiff
 
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|^main|int main|' ${WRKSRC}/kdc2tiff.cpp
+
 .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"