[NEW PORT] archivers/orange: Extract Microsoft Cabinet files from self-extracting installers

Orange is a tool and library for squeezing out juicy
	installable Microsoft Cabinet Files from self-extracting
	installers for Microsoft Windows.

	Supported installers include VISE, InstallShield, Setup
	Factory and more.

	WWW: http://synce.sourceforge.net

PR:		ports/76030
Submitted by:	Sam Lawrance <boris@brooknet.com.au>
This commit is contained in:
Edwin Groothuis 2005-01-14 00:13:20 +00:00
parent d74c9bcddf
commit dfd5750bdc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126389
11 changed files with 245 additions and 0 deletions

View file

@ -43,6 +43,7 @@
SUBDIR += nomarch
SUBDIR += nulib
SUBDIR += nwreckdum
SUBDIR += orange
SUBDIR += p5-Archive-Tar
SUBDIR += p5-Archive-Zip
SUBDIR += p5-Compress-Bzip2

View file

@ -0,0 +1,40 @@
# New ports collection makefile for: orange
# Date Created: January 2005
# Whom: Sam Lawrance <boris@brooknet.com.au>
#
# $FreeBSD$
#
PORTNAME= orange
PORTVERSION= 0.2
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= synce
MAINTAINER= boris@brooknet.com.au
COMMENT= Extract Microsoft Cabinet files from self-extracting installers
LIB_DEPENDS= synce.0:${PORTSDIR}/palm/synce-libsynce \
rapi.2:${PORTSDIR}/palm/synce-librapi2 \
dynamite.0:${PORTSDIR}/archivers/dynamite \
unshield.0:${PORTSDIR}/archivers/unshield
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-libsynce=${LOCALBASE}
USE_ICONV= yes
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-Werror||' \
${WRKSRC}/lib/Makefile.in \
${WRKSRC}/src/Makefile.in
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|' ${WRKSRC}/lib/inno.h
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,2 @@
MD5 (orange-0.2.tar.gz) = 50863dd7b29112049bf52b83e6c8c2a2
SIZE (orange-0.2.tar.gz) = 214255

View file

@ -0,0 +1,67 @@
--- lib/inno.h.orig Mon Sep 8 17:17:28 2003
+++ lib/inno.h Mon Jan 10 05:07:47 2005
@@ -3,7 +3,7 @@
#define __inno_h__
#include <stdbool.h>
-#include <stdint.h>
+#include <inttypes.h>
#include <stdio.h>
#include <zlib.h>
@@ -100,7 +100,7 @@
uint32_t NumUninstallDeleteEntries;
uint32_t NumRunEntries;
uint32_t NumUninstallRunEntries;
- P uint8_t stuff[0x35];
+ uint8_t P stuff[0x35];
} TSetupHeader;
#define SETUP_HEADER_SIZE 0xd9
@@ -144,9 +144,9 @@
typedef struct
{
- P uint32_t WinVersion;
- P uint32_t NTVersion;
- P uint16_t Word;
+ uint32_t P WinVersion;
+ uint32_t P NTVersion;
+ uint16_t P Word;
} TSetupVersionData;
#if 0
@@ -173,12 +173,12 @@
char* InstallFontName;
char* Components;
char* Tasks;
- P TSetupVersionData MinVersion;
- P TSetupVersionData OnlyBelowVersion;
+ TSetupVersionData P MinVersion;
+ TSetupVersionData P OnlyBelowVersion;
uint32_t LocationEntry;
uint32_t Attribs;
uint32_t ExternalSize;
- P char stuff[4];
+ char P stuff[4];
#if 0
Options: set of (foConfirmOverwrite, foUninsNeverUninstall, foRestartReplace,
foDeleteAfterInstall, foRegisterServer, foRegisterTypeLib, foSharedFile,
@@ -191,7 +191,7 @@
#endif
} TSetupFileEntry;
-P typedef struct
+typedef struct
{
uint32_t FirstDisk;
uint32_t LastDisk;
@@ -202,7 +202,7 @@
uint32_t Date;
uint32_t FileVersionMS;
uint32_t FileVersionLS;
-} TSetupFileLocationEntry;
+} P TSetupFileLocationEntry;
#define SETUP_FILE_LOCATION_ENTRY_SIZE 0x29

View file

@ -0,0 +1,7 @@
Orange is a tool and library for squeezing out juicy installable
Microsoft Cabinet Files from self-extracting installers for Microsoft
Windows.
Supported installers include VISE, InstallShield, Setup Factory and more.
WWW: http://synce.sourceforge.net

View file

@ -0,0 +1,6 @@
bin/orange
include/liborange.h
lib/liborange.so.0
lib/liborange.so
lib/liborange.la
lib/liborange.a

40
archivers/orange/Makefile Normal file
View file

@ -0,0 +1,40 @@
# New ports collection makefile for: orange
# Date Created: January 2005
# Whom: Sam Lawrance <boris@brooknet.com.au>
#
# $FreeBSD$
#
PORTNAME= orange
PORTVERSION= 0.2
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= synce
MAINTAINER= boris@brooknet.com.au
COMMENT= Extract Microsoft Cabinet files from self-extracting installers
LIB_DEPENDS= synce.0:${PORTSDIR}/palm/synce-libsynce \
rapi.2:${PORTSDIR}/palm/synce-librapi2 \
dynamite.0:${PORTSDIR}/archivers/dynamite \
unshield.0:${PORTSDIR}/archivers/unshield
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-libsynce=${LOCALBASE}
USE_ICONV= yes
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-Werror||' \
${WRKSRC}/lib/Makefile.in \
${WRKSRC}/src/Makefile.in
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|' ${WRKSRC}/lib/inno.h
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,2 @@
MD5 (orange-0.2.tar.gz) = 50863dd7b29112049bf52b83e6c8c2a2
SIZE (orange-0.2.tar.gz) = 214255

View file

@ -0,0 +1,67 @@
--- lib/inno.h.orig Mon Sep 8 17:17:28 2003
+++ lib/inno.h Mon Jan 10 05:07:47 2005
@@ -3,7 +3,7 @@
#define __inno_h__
#include <stdbool.h>
-#include <stdint.h>
+#include <inttypes.h>
#include <stdio.h>
#include <zlib.h>
@@ -100,7 +100,7 @@
uint32_t NumUninstallDeleteEntries;
uint32_t NumRunEntries;
uint32_t NumUninstallRunEntries;
- P uint8_t stuff[0x35];
+ uint8_t P stuff[0x35];
} TSetupHeader;
#define SETUP_HEADER_SIZE 0xd9
@@ -144,9 +144,9 @@
typedef struct
{
- P uint32_t WinVersion;
- P uint32_t NTVersion;
- P uint16_t Word;
+ uint32_t P WinVersion;
+ uint32_t P NTVersion;
+ uint16_t P Word;
} TSetupVersionData;
#if 0
@@ -173,12 +173,12 @@
char* InstallFontName;
char* Components;
char* Tasks;
- P TSetupVersionData MinVersion;
- P TSetupVersionData OnlyBelowVersion;
+ TSetupVersionData P MinVersion;
+ TSetupVersionData P OnlyBelowVersion;
uint32_t LocationEntry;
uint32_t Attribs;
uint32_t ExternalSize;
- P char stuff[4];
+ char P stuff[4];
#if 0
Options: set of (foConfirmOverwrite, foUninsNeverUninstall, foRestartReplace,
foDeleteAfterInstall, foRegisterServer, foRegisterTypeLib, foSharedFile,
@@ -191,7 +191,7 @@
#endif
} TSetupFileEntry;
-P typedef struct
+typedef struct
{
uint32_t FirstDisk;
uint32_t LastDisk;
@@ -202,7 +202,7 @@
uint32_t Date;
uint32_t FileVersionMS;
uint32_t FileVersionLS;
-} TSetupFileLocationEntry;
+} P TSetupFileLocationEntry;
#define SETUP_FILE_LOCATION_ENTRY_SIZE 0x29

View file

@ -0,0 +1,7 @@
Orange is a tool and library for squeezing out juicy installable
Microsoft Cabinet Files from self-extracting installers for Microsoft
Windows.
Supported installers include VISE, InstallShield, Setup Factory and more.
WWW: http://synce.sourceforge.net

View file

@ -0,0 +1,6 @@
bin/orange
include/liborange.h
lib/liborange.so.0
lib/liborange.so
lib/liborange.la
lib/liborange.a