ports/175049: deskutils/aspostit: Fix build with clang

KATO Tsuguru tkato432 at yahoo.com
Sat Jan 5 18:10:14 UTC 2013


>Number:         175049
>Category:       ports
>Synopsis:       deskutils/aspostit: 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:   Sat Jan 05 18:10:13 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Fix build with clang

New file:
files/patch-xpostit.c

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/deskutils/aspostit/Makefile deskutils/aspostit/Makefile
--- /usr/ports/deskutils/aspostit/Makefile	2012-11-08 05:51:05.000000000 +0900
+++ deskutils/aspostit/Makefile	2013-01-05 22:52:09.000000000 +0900
@@ -1,32 +1,32 @@
-# New ports collection makefile for:   ASPostIt
-# Date created:        2 January 1999
-# Whom:                Kris Kennaway <kris at FreeBSD.org>
-#
+# Created by: Kris Kennaway <kris at FreeBSD.org>
 # $FreeBSD: head/deskutils/aspostit/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	aspostit
 PORTVERSION=	1.3
 PORTREVISION=	6
 CATEGORIES=	deskutils
-MASTER_SITES=	${MASTER_SITE_AFTERSTEP}
-MASTER_SITE_SUBDIR=	apps/aspostit
+MASTER_SITES=	AFTERSTEP/apps/aspostit
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	An AfterStep dockable version of XPostIt
+COMMENT=	AfterStep dockable version of XPostIt
 
-LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg
+LICENSE=	GPLv2 # (or later)
+
+LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg
 
 USE_XORG=	xpm xaw xext x11
 USE_GMAKE=	yes
-
 GNU_CONFIGURE=	yes
+MAKE_JOBS_SAFE=	yes
 
 MAN1=		aspostit.1
 PLIST_FILES=	bin/aspostit
 
+post-extract:
+	@${LN} -sf aspostit.man ${WRKSRC}/aspostit.1
+
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/aspostit ${PREFIX}/bin/
-	${INSTALL_MAN} ${WRKSRC}/aspostit.man ${PREFIX}/man/man1/aspostit.1
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} aspostit ${PREFIX}/bin)
+	(cd ${WRKSRC} && ${INSTALL_MAN} aspostit.1 ${MANPREFIX}/man/man1)
 
 .include <bsd.port.mk>
diff -urN /usr/ports/deskutils/aspostit/files/patch-xpostit.c deskutils/aspostit/files/patch-xpostit.c
--- /usr/ports/deskutils/aspostit/files/patch-xpostit.c	1970-01-01 09:00:00.000000000 +0900
+++ deskutils/aspostit/files/patch-xpostit.c	2012-10-24 01:06:37.000000000 +0900
@@ -0,0 +1,19 @@
+--- xpostit.c.orig	1999-01-08 06:10:27.000000000 +0900
++++ xpostit.c	2012-10-24 01:06:04.000000000 +0900
+@@ -32,6 +32,7 @@
+ #include <X11/Xaw/SimpleMenu.h>
+ #include <signal.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ 
+ #include "xpostit.h"
+ #include "version.h"
+@@ -130,7 +131,7 @@
+ unsigned long timer_interval;	/* auto-save interval */
+ unsigned long alarm_interval;	/* alarm check interval */
+ 
+-void main(argc, argv)
++int main(argc, argv)
+ char **argv;
+ int argc;
+ {
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list