diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-18 14:40:36 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-18 14:40:36 +0000 |
commit | 4813d21b29b3a126efa0fb07d249fc5f6943548c (patch) | |
tree | 9bbf2b7f9f00c00f7e3955e797f53b5ae8c7fa71 /sysutils | |
parent | f4a8b5de46a2d2b16a04e8ccd598f98f266d56e1 (diff) | |
download | ports-4813d21b29b3a126efa0fb07d249fc5f6943548c.tar.gz ports-4813d21b29b3a126efa0fb07d249fc5f6943548c.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/hoz/Makefile | 74 | ||||
-rw-r--r-- | sysutils/hoz/distinfo | 2 | ||||
-rw-r--r-- | sysutils/hoz/files/patch-src_Makefile | 57 | ||||
-rw-r--r-- | sysutils/hoz/files/patch-src_hozgtk_i.c | 27 | ||||
-rw-r--r-- | sysutils/hoz/pkg-descr | 7 |
6 files changed, 168 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 800275818228..13194601f355 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -216,6 +216,7 @@ SUBDIR += heirloom SUBDIR += highlnk SUBDIR += hourglass + SUBDIR += hoz SUBDIR += httplog SUBDIR += i855vidctl10 SUBDIR += idled diff --git a/sysutils/hoz/Makefile b/sysutils/hoz/Makefile new file mode 100644 index 000000000000..40c141084b03 --- /dev/null +++ b/sysutils/hoz/Makefile @@ -0,0 +1,74 @@ +# New ports collection makefile for: HOZ - Hacha Open Zource +# Date created: 2005-09-16 +# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> +# +# $FreeBSD$ +# + +PORTNAME= hoz +PORTVERSION= 1.65 +CATEGORIES= sysutils +MASTER_SITES= http://hoz.sourceforge.net/download/ +DISTNAME= hoz-165 + +MAINTAINER= acardenas@bsd.org.pe +COMMENT= File splitter, GTK and CLI versions + +USE_GNOME= # +USE_GMAKE= yes +USE_GZIP= yes + +USE_GETOPT_LONG=yes +MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" + +PORTDOCS= README + +OPTIONS= CLI "CLI interface" on \ + GTK2 "GTK interface" on \ + LANG_ES "Spanish translation" off \ + LANG_EN "English translation" on \ + LANG_FR "French translation" off + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_GTK2) +USE_GNOME+= gtk20 +.endif + +.if defined(WITHOUT_CLI) +ALL_TARGET= gtk +.else +PLIST_FILES+= bin/hoz +.endif + +.if defined(WITHOUT_GTK2) +ALL_TARGET= cli +.else +PLIST_FILES+= bin/ghoz +.endif + +.if defined(WITH_LANG_ES) +MAKE_ENV+= LANG="-DHOZ_LANG_ES" +.endif + +.if !defined(WITHOUT_LANG_EN) +MAKE_ENV+= LANG="-DHOZ_LANG_EN" +.endif + +.if defined(WITH_LANG_FR) +MAKE_ENV+= LANG="-DHOZ_LANG_FR" +.endif + +do-install: +.if !defined(WITHOUT_CLI) + ${INSTALL_PROGRAM} ${WRKSRC}/hoz ${PREFIX}/bin +.endif +.if !defined(WITHOUT_GTK2) + ${INSTALL_PROGRAM} ${WRKSRC}/ghoz ${PREFIX}/bin +.endif +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include <bsd.port.post.mk> diff --git a/sysutils/hoz/distinfo b/sysutils/hoz/distinfo new file mode 100644 index 000000000000..437276cd1020 --- /dev/null +++ b/sysutils/hoz/distinfo @@ -0,0 +1,2 @@ +MD5 (hoz-165.tar.gz) = 84287a9e50cb96dc20e4444dc74d64a0 +SIZE (hoz-165.tar.gz) = 36857 diff --git a/sysutils/hoz/files/patch-src_Makefile b/sysutils/hoz/files/patch-src_Makefile new file mode 100644 index 000000000000..d3e2aa4e7eb3 --- /dev/null +++ b/sysutils/hoz/files/patch-src_Makefile @@ -0,0 +1,57 @@ +--- Makefile.orig Mon Jan 12 17:23:38 2004 ++++ Makefile Sun Sep 18 16:35:03 2005 +@@ -4,14 +4,13 @@ + OBJ = hoz.o hozgtk.o hozgtk_c.o hozgtk_i.o hozgtk_s.o hozcli.o + LINKOBJ = hoz.o hozcli.o + GLINKOBJ = hoz.o hozgtk.o hozgtk_c.o hozgtk_i.o hozgtk_s.o +-CFLAGS = -Wall \ +- -O2 \ ++CFLAGS += -Wall \ + -DG_DISABLE_DEPRECATED \ + -DGDK_DISABLE_DEPRECATED \ +- -DGDK_PIXBUF_DISABLE_DEPRECATED \ +- -DGTK_DISABLE_DEPRECATED +-BIN = /usr/bin/hoz +-GBIN = /usr/bin/ghoz ++ -DGDK_PIXBUF_DISABLE_DEPRECATED ++ ++BIN = hoz ++GBIN = ghoz + + GTK_COMP = `pkg-config gtk+-2.0 --cflags` + GTK_LINK = `pkg-config gtk+-2.0 --libs` +@@ -34,26 +33,26 @@ + rm -f $(OBJ) ${BIN} ${GBIN} + + hoz.o: hoz.c +- $(CC) -c hoz.c -o hoz.o $(CFLAGS) ${LANG} ++ $(CC) -c hoz.c -o hoz.o $(CFLAGS) ${CPPFLAGS} ${LANG} + + hozgtk.o: hozgtk.c +- $(CC) -c hozgtk.c -o hozgtk.o $(CFLAGS) $(GTK_COMP) ${LANG} ++ $(CC) -c hozgtk.c -o hozgtk.o $(CFLAGS) ${CPPFLAGS} $(GTK_COMP) ${LANG} + + hozgtk_c.o: hozgtk_c.c +- $(CC) -c hozgtk_c.c -o hozgtk_c.o $(CFLAGS) $(GTK_COMP) ${LANG} ++ $(CC) -c hozgtk_c.c -o hozgtk_c.o $(CFLAGS) ${CPPFLAGS} $(GTK_COMP) ${LANG} + + hozgtk_i.o: hozgtk_i.c +- $(CC) -c hozgtk_i.c -o hozgtk_i.o $(CFLAGS) $(GTK_COMP) ${LANG} ++ $(CC) -c hozgtk_i.c -o hozgtk_i.o $(CFLAGS) ${CPPFLAGS} $(GTK_COMP) ${LANG} + + hozgtk_s.o: hozgtk_s.c +- $(CC) -c hozgtk_s.c -o hozgtk_s.o $(CFLAGS) $(GTK_COMP) ${LANG} ++ $(CC) -c hozgtk_s.c -o hozgtk_s.o $(CFLAGS) ${CPPFLAGS} $(GTK_COMP) ${LANG} + + hozcli.o: hozcli.c +- $(CC) -c hozcli.c -o hozcli.o $(CFLAGS) ${LANG} ++ $(CC) -c hozcli.c -o hozcli.o $(CFLAGS) ${CPPFLAGS} ${LANG} + + $(BIN): $(LINKOBJ) +- $(CC) $(LINKOBJ) -o $(BIN) $(LIBS) ++ $(CC) $(LINKOBJ) -o $(BIN) $(LIBS) ${LDFLAGS} + + $(GBIN): $(GLINKOBJ) +- $(CC) $(GLINKOBJ) -o $(GBIN) $(LIBS) $(GTK_LINK) ++ $(CC) $(GLINKOBJ) -o $(GBIN) $(LIBS) $(GTK_LINK) ${LDFLAGS} + diff --git a/sysutils/hoz/files/patch-src_hozgtk_i.c b/sysutils/hoz/files/patch-src_hozgtk_i.c new file mode 100644 index 000000000000..62c87cb50a73 --- /dev/null +++ b/sysutils/hoz/files/patch-src_hozgtk_i.c @@ -0,0 +1,27 @@ +*** hozgtk_i.c Tue Feb 17 09:31:38 2004 +--- /home/acardenas/hoz-165/hozgtk_i.c Fri Sep 16 17:53:15 2005 +*************** +*** 119,129 **** + gtk_combo_set_popdown_strings (GTK_COMBO (combo_size), combo_size_items); + g_list_free (combo_size_items); + + combo_entry_size = GTK_COMBO (combo_size)->entry; + gtk_widget_show (combo_entry_size); +! gtk_widget_set_size_request (combo_entry_size, 50, -2); + gtk_editable_set_editable (GTK_EDITABLE (combo_entry_size), FALSE); + gtk_entry_set_text (GTK_ENTRY (combo_entry_size), "bytes"); + + g_signal_connect ((gpointer) window_hoz, "destroy", + G_CALLBACK (on_window_hoz_destroy), +--- 119,129 ---- + gtk_combo_set_popdown_strings (GTK_COMBO (combo_size), combo_size_items); + g_list_free (combo_size_items); + + combo_entry_size = GTK_COMBO (combo_size)->entry; + gtk_widget_show (combo_entry_size); +! gtk_widget_set_size_request (combo_entry_size, 50, -1); + gtk_editable_set_editable (GTK_EDITABLE (combo_entry_size), FALSE); + gtk_entry_set_text (GTK_ENTRY (combo_entry_size), "bytes"); + + g_signal_connect ((gpointer) window_hoz, "destroy", + G_CALLBACK (on_window_hoz_destroy), diff --git a/sysutils/hoz/pkg-descr b/sysutils/hoz/pkg-descr new file mode 100644 index 000000000000..2d3413385e8a --- /dev/null +++ b/sysutils/hoz/pkg-descr @@ -0,0 +1,7 @@ +HOZ is what you would call a "file splitter". Its file format is the same as +the one used by the "Hacha" software, a well known splitter in Spain and + Latinamerica. HOZ is an open-source and portable C implementation of an +"Hacha" compatible splitter. + +Author: Gustavo Picon <tabo@slashcore.com> +WWW: http://hoz.sourceforge.net/ |