- Fix build with clang

- Update MASTER_SITES
- Support PLIST_FILES

PR:		178578
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2013-05-14 16:12:01 +00:00
parent fd302572cc
commit 44f4b96abb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=318167
4 changed files with 25 additions and 13 deletions

View File

@ -1,22 +1,17 @@
# New ports collection makefile for: ghostview
# Date created: 21 October 1994
# Whom: jkh
#
# Created by: jkh
# $FreeBSD$
#
PORTNAME= ghostview
PORTVERSION= 1.5
PORTREVISION= 3
CATEGORIES= print
MASTER_SITES= http://ftp.gnu.org/old-gnu/ghostview/ \
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/ghostview/
http://ftp.sunet.se/pub/text-processing/postscript/interpreters/ghostscript/gnu/ghostview/
MAINTAINER= ports@FreeBSD.org
COMMENT= An X11 front-end for ghostscript, the GNU postscript previewer
COMMENT= X11 front-end for ghostscript, the GNU postscript previewer
LICENSE= GPLv2 # (or later)
LICENSE_FILE= ${WRKSRC}/COPYING
USE_IMAKE= yes
USE_XORG= xbitmaps xaw
@ -24,8 +19,8 @@ USE_GHOSTSCRIPT_RUN= yes
MAKE_JOBS_SAFE= yes
MAN1= ghostview.1
CFLAGS+= -DUSG
PLIST_FILES= bin/ghostview \
lib/X11/app-defaults/Ghostview
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

View File

@ -0,0 +1,10 @@
--- Dir.c.orig
+++ Dir.c
@@ -25,6 +25,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#ifdef SEL_FILE_IGNORE_CASE
#include <ctype.h>

View File

@ -1,6 +1,15 @@
--- misc.c.orig Sat Jul 24 03:29:12 1993
+++ misc.c Wed Jun 5 22:41:39 2002
@@ -60,8 +60,9 @@
@@ -24,6 +24,8 @@
*/
#include <stdio.h>
+#include <stdlib.h>
+
#ifndef SEEK_SET
#define SEEK_SET 0
#endif
@@ -60,8 +62,9 @@
#ifdef VMS
#include <perror.h>
#else

View File

@ -1,2 +0,0 @@
bin/ghostview
lib/X11/app-defaults/Ghostview