aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-11-10 19:31:11 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-11-10 19:31:11 +0000
commitff283bd66d5a112bea98f901f4bfe72552a3794c (patch)
tree7dafaca3211e60955df15fc3d871a68963d88c80 /misc
parent1f1a5c0d10f513ee3d790a2e1bc697128f083c7f (diff)
downloadports-ff283bd66d5a112bea98f901f4bfe72552a3794c.tar.gz
ports-ff283bd66d5a112bea98f901f4bfe72552a3794c.zip
- Fix MASTER_SITES
- Avoid some compiler warnings - Remove obsolete WWW: line - Bump PORTREVISION PR: 59129 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=93686
Diffstat (limited to 'misc')
-rw-r--r--misc/snowflake/Makefile9
-rw-r--r--misc/snowflake/distinfo2
-rw-r--r--misc/snowflake/files/patch-sf.c44
-rw-r--r--misc/snowflake/files/patch-sf.h10
-rw-r--r--misc/snowflake/files/patch-sf_control.c11
-rw-r--r--misc/snowflake/pkg-descr2
6 files changed, 72 insertions, 6 deletions
diff --git a/misc/snowflake/Makefile b/misc/snowflake/Makefile
index 96b2f2001e22..160f4d50ff25 100644
--- a/misc/snowflake/Makefile
+++ b/misc/snowflake/Makefile
@@ -7,17 +7,20 @@
PORTNAME= snowflake
PORTVERSION= 0.01a
+PORTREVISION= 1
CATEGORIES= misc
-MASTER_SITES= http://www.infomatch.com/~donaldj/
-DISTNAME= ${PORTNAME}
+MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
+DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
MAINTAINER= ports@FreeBSD.org
COMMENT= A snowflake image generator
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}.orig
+
USE_X_PREFIX= yes
USE_GNOME= gtk12
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/snowflake ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/snowflake ${PREFIX}/bin
.include <bsd.port.mk>
diff --git a/misc/snowflake/distinfo b/misc/snowflake/distinfo
index a7974c2a4b71..64e6ce450a44 100644
--- a/misc/snowflake/distinfo
+++ b/misc/snowflake/distinfo
@@ -1 +1 @@
-MD5 (snowflake.tar.gz) = 285a1ad22b85f7f78364d4e51774992f
+MD5 (snowflake_0.01a.orig.tar.gz) = 8712dd23b8d4c30fc3261c69ffbc40e7
diff --git a/misc/snowflake/files/patch-sf.c b/misc/snowflake/files/patch-sf.c
new file mode 100644
index 000000000000..2731b1a53807
--- /dev/null
+++ b/misc/snowflake/files/patch-sf.c
@@ -0,0 +1,44 @@
+--- sf.c.orig Mon Dec 21 08:18:55 1998
++++ sf.c Sat Nov 8 21:20:24 2003
+@@ -47,6 +47,7 @@
+
+ struct option long_options[] =
+ {
++ { "version", 0, 0, c_VERSION },
+ { "view-geometry", 1, 0, c_VIEW_GEOMETRY },
+ { "control-geometry", 1, 0, c_CONTROL_GEOMETRY },
+ { "minimize", 0, 0, c_MINIMIZE },
+@@ -77,6 +78,8 @@
+
+ help_info_line help_info[] =
+ {
++ { "version", c_VERSION, " ",
++ "show program version" },
+ { "view-geometry", c_VIEW_GEOMETRY, "+x+y",
+ "Control window placement" },
+ { "control-geometry", c_CONTROL_GEOMETRY, "+x+y",
+@@ -134,7 +137,7 @@
+
+ /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
+
+-void main( int argc,char* argv[] )
++int main( int argc,char* argv[] )
+ {
+ int i;
+ char* shop;
+@@ -175,7 +178,14 @@
+ help_info[i].description );
+
+ exit( 0 );
+- }
++ }
++ /* asking for version? */
++ if ( ( strncmp( argv[1], "-V", 2 ) == 0 ) ||
++ ( strncmp( argv[1],"--version",3 ) == 0 ) )
++ {
++ printf( "%s - %s\n",program_name,version );
++ exit( 0 );
++ }
+ }
+
+ /* create shared memory image and mutex */
diff --git a/misc/snowflake/files/patch-sf.h b/misc/snowflake/files/patch-sf.h
new file mode 100644
index 000000000000..b6ef9deb2c58
--- /dev/null
+++ b/misc/snowflake/files/patch-sf.h
@@ -0,0 +1,10 @@
+--- sf.h.orig Mon Dec 21 08:18:55 1998
++++ sf.h Sat Nov 8 21:20:24 2003
+@@ -17,6 +17,7 @@
+
+ typedef enum
+ {
++ c_VERSION = 'V',
+ c_VIEW_GEOMETRY = 'v',
+ c_CONTROL_GEOMETRY = 'c',
+ c_MINIMIZE = 'm',
diff --git a/misc/snowflake/files/patch-sf_control.c b/misc/snowflake/files/patch-sf_control.c
new file mode 100644
index 000000000000..364d3dd000b5
--- /dev/null
+++ b/misc/snowflake/files/patch-sf_control.c
@@ -0,0 +1,11 @@
+--- sf_control.c.orig Mon Dec 21 08:18:55 1998
++++ sf_control.c Sat Nov 8 21:20:24 2003
+@@ -266,7 +266,7 @@
+ static char xpm_filespec[MAX_FILESPEC+1] = { 0 };
+
+ static char design_filespec[MAX_FILESPEC+1] = { 0 };
+-static char design_line = -1;
++static signed char design_line = -1;
+ static FILE* design_file = (FILE*)0;
+
+ /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
diff --git a/misc/snowflake/pkg-descr b/misc/snowflake/pkg-descr
index 36fe3ff4676b..b2bb167ca168 100644
--- a/misc/snowflake/pkg-descr
+++ b/misc/snowflake/pkg-descr
@@ -1,3 +1 @@
a snowflake image generator
-
-WWW: http://www.infomatch.com/~donaldj/