summaryrefslogtreecommitdiff
path: root/Mk
AgeCommit message (Collapse)Author
1997-01-14Move $FreeBSD$ up right next to $NetBSD$ (oh, the solidarity! :).Satoshi Asami
1997-01-14Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
1997-01-13Skip non-existent subdirectories. The diff is rather large becauseSatoshi Asami
the original logic went into a section of code assuming some incarnation is there, but it's basically a "test -d" fix. Closes PR ports/2082. Reviewed by: max ("although I didn't test it, it looks fine")
1997-01-12Add OpenBSD support. Change some comments to reflect the fact. Also:Satoshi Asami
(1) Change commented out MAINTAINER to FreeBSD_MAINTAINER and OpenBSD_MAINTAINER. These are not comments anymore, so we may even use it in the future. (2) Instead of the ".if ${OPSYS} = "NetBSD" hack, use ".if exists()" to find the location of md5 an tar. Play similar trick for fetch (OpenBSD uses /usr/bin/ftp which groks http: addresses). This commit includes most of the changes made in 1.242 (although many of them are done differently after more discussion). One thing that is conspicuously missing is NOMANCOMPRESS, which has been postponed until Warner figures out what exactly the situation is on the OpenBSD ports paradigm. (In a nutshell, we can't just define NOMANCOMPRESS in this file even if uncompressed manpages is the default for OpenBSD, because that will take away the ability of individual users to select manpage compression.) Reviewed by: imp@openbsd.org
1997-01-12(1) New variable, SCRIPTS_ENV, which is passed to scripts/configureSatoshi Asami
and scripts/{pre,post}-* as environment vars. Also, if BATCH is set, "BATCH=yes" is automatically added to SCRIPTS_ENV. (Requested by: max) (2) The INSTALL_* macros are added to SCRIPTS_ENV and MAKE_ENV as BSD_INSTALL_*. (Requested by: obrien) (3) New variable MOTIF_ONLY, which will only build ports with REQUIRES_MOTIF defined. This doesn't do dependencies right (what if the depended port doesn't need Motif) yet. (4) Try not to clean the same port twice in clean-depends when (for instance) it's defined in both BUILD_DEPENDS and INSTALL_DEPENDS. Note that it won't check chained dependencies so you may still see the same port cleaned multiple times, but checking that far will surely make this run slower than the un-"optimized" case so I left it as is. (Requested by: jkh) (5) Ignore *.rej files in patches/ directory in addition to *~ and *.orig.
1997-01-10if !(command) -> if ! (command)Wolfram Schneider
the ksh and I guess some other shells want a space between '!' and the next command. This problem exist since rev 1.207
1996-12-26I'm sorry, this kind of commits need to be reviewed by me, espiciallySatoshi Asami
in a time like this (i.e., right before the release). Back out rev 1.242, also add a stronger note above the MAINTAINER.
1996-12-25Integrate changes from OpenBSD's efforts to use the FreeBSD ports system.Warner Losh
Generalize the selection of programs to run based on the existance of files rather than the OS names that we find. Add comments about me being the keeper of the OpenBSD mods of this file. Use ftp on OpenBSD rather than fetch since OpenBSD's FTP supports urls and there is no fetch. Reviewed by: Joerge Wunch, Jordan Hubbard, and others in ports I've forgotten Obtained from: OpenBSD with changes from me.
1996-12-23Suggested by: msmithSatoshi Asami
Add a little more sophistication to the md5 grep command. Change the md5 checksum logic a bit. Now, the message is printed out for every successfully/unsuccessfully matched checksum, and it aborts at the end if there was a mismatch. Also, make missing checksum and IGNORE file inconsistency fatal, as there is now no reason to have a missing checksum.
1996-12-18Add missing targets (extract, patch) in the IGNORE (INTERACTIVE &Satoshi Asami
PATCH, etc.) section. Also sort them in order of execution like other parts of this file.
1996-12-17Add new variable IGNOREFILES, to be set to list of files that you don'tSatoshi Asami
want md5 checksum calculated. (It will create an entry in files/md5 with rhs "IGNORE".) Now it's safe to do a "make makesum" on all ports.
1996-12-12Change delimiter of substitution that uses MANLANG from `.' to `%', soSatoshi Asami
things like `ja_JP.EUC' will work. Suggested by: max
1996-12-11Extend the manpage compression handling a bit.Satoshi Asami
(1) MANLANG is now a list (defaulting to ""), so if you have English and Japanese-EUC versions of the manpages, you can say something like `MANLANG= "" ja_JP.EUC' and manpage compression will DTRT. (2) Add new variables MAN%cPREFIX (where %c=[1-9LN]) which default to MANPREFIX (which defaults to PREFIX), to specify per-section prefixes. In particular, this handles the cases in many perl ports, which install man1pages into man/man1 and man3pages into lib/perl5/man/man3. Note these modifications won't change the behavior of existing variables used in previously-approved ways, so any Makefile that worked before will still continue to work.
1996-12-11Add support for uncompressing manpages that are already installedSatoshi Asami
compressed. Requested by: obrien Change name of -D option (to pkg_create) file to MESSAGES. (More friendly to filename completion.)
1996-12-09Submitted by: fennerSatoshi Asami
(1) Print out reason when port is ignored because of NO_CDROM, RESTRICTED, IS_INTERACTIVE, (not) IS_INTERACTIVE, BROKEN, REQUIRES_MOTIF or NO_PACKAGE. Submitted by: obrien (2) Add new special file in pkg/: DISPLAY. (Cf. man pkg_create) (3) Minor bugfix in clean-depends target, which sometimes executed "make clean" in the current directory. (Which is probably ok, but is wrong nonetheless.)
1996-12-08Was using new URL (ftp://ftp://) before the RFC has been voted on. :-)David E. O'Brien
Obtained from: make fetch
1996-12-04Optimize by changing "sort | uniq" -> "sort -u". "make index" is nowSatoshi Asami
412 secs instead of 498 secs on my machine! Submitted by: fenner
1996-11-30Merge from RELENG_2_2 (duh). See rev 1.227.2.4 for details.Satoshi Asami
1996-11-14Just realized that the spacing after "==>" is not consistent. I'mSatoshi Asami
terribly sorry, please merge this into 2.2 as well.
1996-11-14Oops, forgot to silencethe gzip command to compress manpages.Satoshi Asami
It will be nice if this went into 2.2, I guess. Reminded by: max
1996-11-13(1) There is no default "orphans" for CATEGORIES, it simply fails ifSatoshi Asami
you have a Makefile without one. (2) Fix case when user had DISTDIR defined elsewhere and DIST_SUBDIR is also defined. (Submitted by: max) (3) Add several popular master sites as variables. For instance, MASTER_SITE_XCONTRIB is defined to be a list of X11R6 contrib sites, which you can set MASTER_SITES to in your Makefile if you just want ftp.x.org or any of the mirror sites. There is also a new variable, MASTER_SITE_SUBDIR, to specify which subdirectory of the master site your tarball is located. One nice thing this enables the user to do is to define the nearest mirror site in /etc/make.conf. This is especially useful for continents without a full FreeBSD master site. Eventually, we will probably split this into a separate file (bsd.port.sites.mk?), and add some more sites from all corners of the world. Right now, XCONTRIB, GNU, PERL_CPAN, TEX_CTAN, and SUNSITE are supported. (4) COMPRESS_MAN command alias is replaced by MAN[1-9LN] variables. You just say "MAN1=foo.1 bar.1" and the make rules will automatically compress it for you if necessary. (Idea by: obrien) (5) New "distclean" target to delete distfile too. (Submitted by: obrien) (6) Chained dependency cleaning, can be turned off by NOCLEANDEPENDS. Reviewed by: the ports list
1996-11-03Set tabstops to 4 in vi like in emacs.David E. O'Brien
1996-11-01(1) Add NetBSD support. Closes PR bin/1643.Satoshi Asami
Submitted by: Jason Thorpe <thorpej@nas.nasa.gov> (2) Remove the bogus "CAT+=" definition. Closes PR ports/1703. Submitted by: Peter Childs <pjchilds@imforei.apana.org.au> (3) Change MKDIR to "/bin/mkdir -p", remove "-p" from ${MKDIR} invocations. Closes PR ports/1901. Submitted by: obrien (4) Add a new macro variable COMPRESS_MAN, which will evaluate to gzip if NOMANCOMPRESS isn't set (default), or true if it is. (5) Add a new variable NO_CHECKSUM, which will disable the md5 checksum. Submitted by: jkh (6) Also, move NO_PATCH and NO_PACKAGE checks to right place in invocation order. (7) Check for LIB_DEPENDS before installation too. (It used to check only before extraction.) Forgotten a long time ago by: asami
1996-09-24Back out changes in rev. 1.217 -- ${CONFIGURE_SCRIPT} is notSatoshi Asami
meant to rename the name of script in ${SCRIPTDIR}.
1996-09-23Look on the CDROM for patch files too.Satoshi Asami
Submitted by: max While I'm here, add "${DIST_SUBDIR}/" at end of CDROM pathnames. Also add an empty declaration of PATCH_SITES next to MASTER_SITES to avoid "variable recursive" error.
1996-08-25/bin/echo -> ${ECHO}Wolfram Schneider
/usr/bin/sed -> ${SED}
1996-08-24Use the new "file:" URL specification to fetch to check the CDROMSatoshi Asami
first if /cdrom/ports/distfiles exists. If FETCH_SYMLINK_DISTFILES is set, symlink the file instead of copying. Reviewed by: jhk
1996-08-20Update explanation of *_DEPENDS, in particular note that bsd.port.mkSatoshi Asami
can now check existence of files specified by full pathnames, not only executables.
1996-08-18(1) Use INSTALL_PROGRAM where we attempt to pass this command lineSatoshi Asami
to configure. (2) Gently warn user for non-0022 umasks. Submitted by: "David E. O'Brien" <obrien@Nuxi.cs.ucdavis.edu> (1)
1996-08-17(1) Ignore patches directory without a patch with a message instead ofSatoshi Asami
bombing mercilessly. (2) If that directory has a directory called CVS, remind the user of the existence of the "-P" option to cvs co and update. (3) While I'm here, clean up the PATCH_DEBUG code a bit. In particular, don't duplicate a whole bunch of code just for adding a single "echo" statement. ;) Reviewed by: the ports list
1996-08-15(1) Add myself as MAINTAINER (of this file) -- commented out so itSatoshi Asami
won't be pulled into individual ports that include this file. ;) (2) Document MOTIFLIB, it's not set in the ports Makefiles but is important for Motif ports (already documented in the handbook). (3) Add INSTALL_PROGRAM, INSTALL_SCRIPT, INSTALL_DATA, INSTALL_MAN as "aliases" of the appropriate install command line, for use in *-install targets. Reviewed by: the ports list (item 3 only)
1996-08-07Make explanation of BUILD_DEPENDS less confusing.Satoshi Asami
Requested by: Narvi <narvi@haldjas.folklore.ee>
1996-07-27Fixed bug, that CONFIGURE_SCRIPT in a port's Makefile doesn't haveAndreas Klemm
any effect. The target do-configure used ${SCRIPTDIR}/configure instead of ${SCRIPTDIR}/${CONFIGURE_SCRIPT}. -andreas
1996-07-05Remove now-unused SRC_ENCAPSULATION hack.Jordan K. Hubbard
1996-06-26Add a missing space in a commentGary Palmer
1996-06-24Bring in my changes for removing the pestilent obj links (unless youJordan K. Hubbard
really want them) from /usr/src. This is the final version of the patches, incorporating the feedback I've received from -current.
1996-06-22Correct spelling errors (i before e except after c :-) )Gary Palmer
Submitted by: James Raynard <jraynard>
1996-06-20Handle the `distribute' target.Jordan K. Hubbard
1996-06-20Whoops - I made `make clean' chatty by mistake.Jordan K. Hubbard
1996-06-19The changes to go with ncftp -> fetch. Besides changing the names,Satoshi Asami
standardize the variables a little, and simplify some parts because we can now trust the fetcher's return value. Reviewed by: the list
1996-06-19Spit out the a proper port path for the describe target.Jordan K. Hubbard
Submitted-By: Chuck Robey <chuckr@Glue.umd.edu>
1996-06-19Ok, now cleandir: is correct.Jordan K. Hubbard
1996-06-19Add some unobtrusive changes to handle sources which aren't portsJordan K. Hubbard
(SRC_ENCAPSUATION). Stick in some cd ${.CURDIR} directives which have been (benignly) missing all this time. Allow more types of targets to be selectively disabled.
1996-06-13Add "MASTER_SITES?=" (no this is not a typo) right before theSatoshi Asami
"MASTER_SITES:= ..." of defined(MASTER_SITE_OVERRIDE) case, otherwise it would cause a recursive variable definition error when MASTER_SITE_OVERRIDE is set and MASTER_SITES is not set.
1996-06-01Add some comments to sections to disable targets using NO_* variables.Satoshi Asami
Remove disabling of "repackage", that thing calls package anyway. Submitted by: (mostly) jkh
1996-05-30Set MAKE_ENV and CONFIGURE_ARGS with += instead of ?=, it is easier toSatoshi Asami
add things this way. Reviewed by: ache
1996-04-27Fix a minor grammatical error (reselled -> resold) I just noticed.Jordan K. Hubbard
1996-04-26Add CFLAGS=${CFLAGS} to MAKE_ENV, otherwise gmake won't pick it up.Satoshi Asami
1996-04-12Add NO_CDROM, RESTRICTED, BROKEN and Motif support.Satoshi Asami
(1) The new NO_CDROM Boolean variable means "don't put the distfile/ package on the CDROM you're going to sell". It will basically turn off everything if FOR_CDROM is set. Many of the NO_PACKAGE ports are actually "don't sell for profit" types, which we shouldn't have any problem distributing via ftp. (2) The new RESTRICTED Boolean variable means don't build this unless you know what you are doing. It doesn't have any effect unless NO_RESTRICTED is also set. (3) BROKEN means this port is broken. At least it will now show up in INDEX and README.html, and give people more incentive to fix (I hope). RESTRICTED and BROKEN are expected to replace the pseudo-targets in parent Makefiles. (The RESTRICTED and BROKEN list didn't do anything before, they were solely for grepping purposes.) (4) The Motif support brings in four new variables: REQUIRES_MOTIF, which the porter sets for ports that require Motif to build; HAVE_MOTIF, which the user sets to indicate the system has Motif; MOTIF_STATIC, which the user sets to indicate that the static libXm, instead af the default dynamic library, is to be used; and MOTIFLIB, which is set to "${X11BASE}/lib/libXm.a" or "-L${X11BASE}/lib -lXm", depending on whether MOTIF_STATIC is set. The porter is expected to replace all occurrences of libXm in the {Im,M}akefiles with ${MOTIFLIB}, and this will allow both dynamic linkage (for users with Motif) and static linkage (for those who build packages to be used by those withot Motif, i.e., me ;) automatically. Original Motif support idea by: graichen
1996-04-09use .for loop for common targetsWolfram Schneider