1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

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.

PR:		ports/86245 (based on)
Submitted by:	Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
This commit is contained in:
Pav Lucistnik 2005-09-18 14:40:36 +00:00
parent f4a8b5de46
commit 4813d21b29
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=143074
6 changed files with 168 additions and 0 deletions

View File

@ -216,6 +216,7 @@
SUBDIR += heirloom
SUBDIR += highlnk
SUBDIR += hourglass
SUBDIR += hoz
SUBDIR += httplog
SUBDIR += i855vidctl10
SUBDIR += idled

74
sysutils/hoz/Makefile Normal file
View File

@ -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>

2
sysutils/hoz/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (hoz-165.tar.gz) = 84287a9e50cb96dc20e4444dc74d64a0
SIZE (hoz-165.tar.gz) = 36857

View File

@ -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}

View File

@ -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),

7
sysutils/hoz/pkg-descr Normal file
View File

@ -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/